Skip to contents

write c14_date_lists to files

Usage

write_c14(x, format = c("csv"), ...)

# S3 method for default
write_c14(x, format = c("csv"), ...)

# S3 method for c14_date_list
write_c14(x, format = c("csv"), ...)

Arguments

x

an object of class c14_date_list

format

the output format: 'csv' (default) or 'xlsx'. 'csv' calls utils::write.csv(), 'xlsx' calls writexl::write_xlsx()

...

passed to the actual writing functions

Examples

csv_file <- tempfile(fileext = ".csv")
write_c14(
  example_c14_date_list,
  format = "csv",
  file = csv_file
)
# \donttest{
xlsx_file <- tempfile(fileext = ".xlsx")
write_c14(
  example_c14_date_list,
  format = "xlsx",
  path = xlsx_file,
)
# }