write_c14: write *c14_date_list*s to files

Description Usage Arguments Examples

View source: R/c14_date_list_write_c14.R

Description

write c14_date_lists to files

Usage

1
2
3
4
5
6
7
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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
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.mirror documentation built on April 29, 2021, 3:03 p.m.