This function will create a model in a LiPD object, adding ensemble data
createModel( L, depth.or.age.vector = NA, ensemble.data, paleo.or.chron = "chronData", paleo.or.chron.num = NA, model.num = NA, ens.table.num = 1, depth.or.age.var = "depth", depth.or.age.units = "cm", ens.var = "ageEnsemble", ens.units = "yr BP", make.new = TRUE, methods = NA, create.summary.table = TRUE )
A LiPD object - an R serialization of a single LiPD file. It's a list, and is typically created by `readLipd()`
A vector of data for the ensemble data that records the position
A matrix or data.frame of ensemble data, with ensemble members in separate columns
"paleoData" or "chronData"
an integer that corresponds to paleo.num or chron Data object (L$<paleo.or.chron>[[?]]) has the variable you want?
an integer that corresponds to model.num that has the variable you want
an integer that corresponds to ensembleTable you want to get the variable from?
A string describing the name of the depth or age vector (default = "depth")
Units for depth.or.age.var (default = "cm")
A string describing the name of the ensemble data (default = "age")
Units for the ensemble data (default = "yr BP")
Create a new model? (default = TRUE)
Optionally add in a list describing the methods used to make the model (default = NA)
Optionally create a summary table derived from the ensemble data (default = TRUE)
a model object