Apply Excel primary row style to odd rows. Depends on the openxlsx
package. All arguments have default values and are optional to allow parameters to be modified.
apply_r1( wb, sheet, table = NULL, style = r1(), rows = 2:(nrow(table) + 1) %>% .[which(.%%2 == 0)], cols = 1:ncol(table), grid = T, stack = F )
wb |
|
---|---|
sheet | Worksheet name. |
table | Table for specified worksheet. If both |
style |
|
rows | Rows to apply style to, optional if |
cols | Columns to apply style to, optional if |
grid | See |
stack | See |
Ayush Noori