write_c14: write *c14_date_list*s to files

View source: R/c14_date_list_write_c14.R

write_c14R Documentation

write c14_date_lists to files

Description

write c14_date_lists to files

Usage

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

## Default S3 method:
write_c14(x, format = c("csv"), ...)

## S3 method for class '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
)

xlsx_file <- tempfile(fileext = ".xlsx")
write_c14(
  example_c14_date_list,
  format = "xlsx",
  path = xlsx_file,
)



ISAAKiel/c14bazAAR documentation built on Feb. 6, 2024, 3:18 a.m.