getVariableIndex: Get the index of variable list

View source: R/lipd.manipulation.R

getVariableIndexR Documentation

Get the index of variable list

Description

Gets the index for a LiPD "variable list"

Usage

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)

strict.search

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

Value

An integer index

See Also

Other LiPD manipulation: createConcatenatedEnsembleMeasurementTable(), createModel(), createMultiModelEnsemble(), createSummaryTableFromEnsembleTable(), createTSid(), estimateUncertaintyFromRange(), mapAgeEnsembleToPaleoData(), pullTsVariable(), selectData()


nickmckay/GeoChronR documentation built on April 9, 2024, 5:26 a.m.