withNames: Helper function for more convenient input (sheet name, data...

Description Usage Arguments Value Examples

View source: R/xlsx2dfs.R

Description

Helper function for more convenient input (sheet name, data frame, sheet name, data frame, ...).

Usage

1

Arguments

...

alterning arguments: sheet name 1, data frame 1, sheet name 2, data frame 2, ...

Value

A list of the data frames with the names given each before.

Examples

1
2
3
4
5
df1 <- data.frame(A=c(1, 2), B=c(3, 4))
df2 <- data.frame(C=c(5, 6), D=c(7, 8))
xlsx_fpath <- file.path(tempdir(), "testout.xlsx")
dfs2xlsx(withNames("sheet1", df1, "sheet2", df2), xlsx_fpath)
file.remove(xlsx_fpath)

xlsx2dfs documentation built on Oct. 11, 2019, 5:06 p.m.