Create a data frame for chron measurement data

createChronMeasInputDf(
  L,
  chron.num = NA,
  meas.table.num = NA,
  lab.id.var = "labID",
  age.14c.var = "age14C",
  age.14c.uncertainty.var = "age14CUnc",
  age.var = "age",
  age.uncertainty.var = "ageUnc",
  depth.var = "depth",
  reservoir.age.14c.var = "reservoirAge",
  reservoir.age.14c.uncertainty.var = "reservoirAge14C",
  rejected.ages.var = "rejected",
  split.ages = TRUE
)

Arguments

L

A LiPD object - an R serialization of a single LiPD file. It's a list, and is typically created by `readLipd()`

chron.num

Which chron number to get data from

meas.table.num

an integer that corresponds to paleo.num measurementTable has the variable you want?

lab.id.var

Lab Id variable name

age.14c.var

Radiocarbon age variable name

age.14c.uncertainty.var

Radiocarbon age uncertainty variable name

age.var

Calibrated age variable name

age.uncertainty.var

Calibrated age uncertainty variable name

depth.var

Depth variable name

reservoir.age.14c.var

Reservoir age variable name

reservoir.age.14c.uncertainty.var

Reservoir age uncertainty variable name

rejected.ages.var

Rejected ages variable name

split.ages

if there's an age_type column, and only one age column, intelligently split between age and age14C (default = TRUE)

Value

a standardized dataframe of chron measurements