Learn R Programming

c14bazAAR (version 1.2.0)

get_c14data: Download radiocarbon source databases and convert them to a c14_date_list

Description

get_c14data() allows to download source databases and adjust their variables to conform to the definition in the variable_reference table. That includes renaming and arranging the variables (with c14bazAAR::order_variables()) as well as type conversion (with c14bazAAR::enforce_types()) -- so all the steps undertaken by as.c14_date_list(). All databases require different downloading and data wrangling steps. Therefore there's a custom getter function for each of them (see ?get_all_dates).

get_c14data() is a wrapper to download all dates from multiple databases and c14bazAAR::fuse() the results.

Usage

get_c14data(databases = c())

Arguments

databases

Character vector. Names of databases to be downloaded. "all" causes the download of all databases. get_c14data() prints a list of the currently available databases

Examples

Run this code
# NOT RUN {
# }
# NOT RUN {
 get_c14data(databases = c("adrac", "palmisano"))
  get_all_dates()
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab