Skip to contents

Each element of df_list is written to its own sheet. Requires the openxlsx package (listed in Suggests).

Usage

write_dataframes_to_excel(df_list, filename)

Arguments

df_list

A named list of data frames.

filename

Character string. Path to the output .xlsx file.

Value

Invisible filename.

Examples

# \donttest{
  tmp <- tempfile(fileext = ".xlsx")
  write_dataframes_to_excel(list(sheet1 = mtcars, sheet2 = iris), tmp)
# }