Description Usage Arguments Examples
Write out data in table format easily to excel
1 2 3 4 5 |
x |
an list of or single object of class |
wb |
a workbook object created with |
sheet |
the name of a sheet created in the workbook object created using
function |
start_row |
the row to start writing the table or list of tables to. |
start_col |
the column to start writing the table or list of tables to. |
header_style |
a style created using |
header_color |
a color to use for the header background color. Ignored if
|
fmt_side |
if |
open_wb |
if the workbook object should be opened after the table has been written. |
pct_keys |
a regex argument to use to search for columns that should be
automatically formatted as percents when the table is output to excel.
Setting this function to |
auto_col_width |
automattically set column widths of the tables being output. |
cond_fmt_cols |
columns of the tables to apply conditional formatting to. |
keep_na |
if set to |
rows_btwn |
if |
verbose |
if |
1 2 3 4 5 6 7 8 9 | # Create a bivariate of vs by cyl
tab1 <- bivar_table(x = mtcars, var = "cyl", bivar = "vs")
tab2 <- bivar_table(x = mtcars, var = "gear", bivar = "vs")
# output a single table
output_to_excel(tab1)
# output a list of tables
output_to_excel(list(tab1, tab2, tab1, tab2))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.