xlsx_write_table: Write a data frame to an Excel tab

Description Usage Arguments See Also Examples

View source: R/xlsx.R

Description

Requires an existing Excel file, preferably created using xlsx_initialize_workbook. The selected tab will be removed (if it already exists) and a new tab will be written.

Usage

1
xlsx_write_table(df, filename, sheet = NULL)

Arguments

df

data frame to write to the Excel worksheet

filename

path where the Excel workbook will be written

sheet

name to use for Excel worksheet. If NULL (default) the name of the df will be used.

See Also

Other functions for writing to excel: xlsx_initialize_workbook()

Examples

1
2
3
xlsx_initialize_workbook("tmp.xlsx")
moria <- data.frame(a = 1:4, b = c("speak", "friend", "and", "enter"))
xlsx_write_table(moria, "tmp.xlsx")

southwick-associates/workflow documentation built on March 30, 2020, 7:55 a.m.