Gets the index for a LiPD "variable list"

getVariableIndex(
  table,
  var.name = NA,
  alt.names = var.name,
  ignore = NA,
  always.choose = FALSE,
  ask = TRUE,
  strict.search = FALSE
)

Arguments

table

a LiPD measurement, ensemble or summary Table

var.name

string name of the variable to extract

alt.names

A vector of strings for alternative names to search for

ignore

A vector of strings of variableNames to ignore

always.choose

Force selection of the variable from a list

ask

If there is only one option, do you want to be asked whether to use it? (default = TRUE)

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

Value

An integer index