Learn R Programming

do (version 2.0.0.1)

write_xlsx: Write data to Excel file write or append one or more data into one Excel file in each sheet.

Description

Write data to Excel file write or append one or more data into one Excel file in each sheet.

Usage

write_xlsx(
  ...,
  file,
  sheet,
  col.names = TRUE,
  row.names = FALSE,
  overwrite = FALSE,
  append = FALSE
)

Value

write one or more data into one Excel file

Arguments

...

one or more data

file

Excel file name

sheet

sheet names

col.names

logical, whether to write out column names

row.names

logical, whether to write out row names

overwrite

logical, whether to overwrite an existing file

append

logical, whether to add data to an existing file

Examples

Run this code
# \donttest{
mtcars2 = mtcars
# write_xlsx(mtcars,mtcars2,file='mtcars')
# }

Run the code above in your browser using DataLab