Selects and extracts a LiPD "variable list"

selectData(
  L,
  var.name = NA,
  paleo.or.chron = "paleoData",
  paleo.or.chron.num = NA,
  table.type = "measurement",
  meas.table.num = NA,
  always.choose = FALSE,
  alt.names = NA,
  model.num = 1,
  ens.table.num = 1,
  sum.table.num = 1,
  strict.search = FALSE
)

Arguments

L

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

var.name

string name of the variable to extract

paleo.or.chron

"paleoData" or "chronData"

paleo.or.chron.num

an integer that corresponds to paleo.num or chron Data object (L$<paleo.or.chron>[[?]]) has the variable you want?

table.type

What type of table do you want to select data from? ("measurement", "summary" or "ensemble")

meas.table.num

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

always.choose

Force selection of the variable from a list

alt.names

A vector of strings for alternative names to search for

model.num

an integer that corresponds to model.num that has the variable you want

ens.table.num

an integer that corresponds to ensembleTable you want to get the variable from?

sum.table.num

an integer that corresponds to which summaryTable you want to get the variable from?

Use a strict.search to look for the ageEnsemble and depth variables. TRUE(default) or FALSE.

Value

A LiPD "variable list" object