write_excel: Write to Excel

Description Usage Arguments Value Examples

Description

Writes a list of dataframe objects to an Excel workbook.

Usage

1
2
write_excel(dfs, workbook_fname, sheet_names, title_names = FALSE,
  add_row_border = FALSE)

Arguments

dfs

the input dataframes as a list

workbook_fname

workbook file name to save to

sheet_names

(optional) formatted names of sheets, if not using object names as defaults

title_names

(optional) whether to title format variable names

add_row_border

(optional) whether to include an underline border under the names row

Value

nothing

Examples

1
2
3
4
5
6
7
df <- data.frame('a' = letters, 'b' = 1:length(letters), 'c' = rep(NA, length(letters)))
## Not run: 
write_excel(df,
            'wb.xlsx',
            title_names = TRUE)
            
## End(Not run)

KevinRPan/handy documentation built on May 4, 2019, 2:34 p.m.