This function can only be used inside another styling function, since
the row_id
and col_id
calculation happens in the level-2 parent.frame.
set_specific_style(st, value, style_name, style_type, ...) # S4 method for StyledTable,ANY,character,character set_specific_style(st, value, style_name, style_type, row_id = NULL, col_id = NULL, condition = NULL, condition_text = NULL, append_mode = "replace")
st | A StyledTable object |
---|---|
value | The value that should be set |
style_name | The name of the style slot that should be set |
style_type | The type which the value has to have (used for type checking) |
... | Various arguments |
row_id | A vector of row ids to which the change should be applied to. The variable |
col_id | A vector of column ids to which the change should be applied to. The variable |
condition | An equation (non standard evaluation) that is evaluated on the data.frame |
condition_text | An character string holding an equation that is evaluated on the data.frame |
append_mode | A character string that defines if the styling value of the cell should be replaced (append_mode = "replace"), if the new styling should be appended at the end of the current styling value of the cell (append_mode = "appendBehind"), if the new styling should be appended in front of the current styling value of the cell (append_mode = "appendBefore") |
The modified StyledTable object
Other styledtable setters: set_bold
,
set_border_color
,
set_border_position
,
set_excel_boldweight
,
set_excel_border_pen
,
set_excel_data_format
,
set_excel_font_name
,
set_excel_font_size
,
set_excel_hidden
,
set_excel_locked
,
set_excel_pre_process
,
set_excel_vertical
,
set_excel_wrapped
,
set_fill_color
,
set_font_color
,
set_horizontal
, set_indent
,
set_italic
,
set_latex_font_name
,
set_latex_font_size
,
set_latex_pre_process
,
set_latex_vertical_move
,
set_rotation
, set_strikeout
,
set_underline