pulls all instances of a single variable out of a TS

pushTsVariable(TS, variable, vec, createNew = FALSE)

Arguments

TS

a LiPD Timeseries object

variable

the name of variable in a TS object

vec

a vector of data to be added to the TS object

createNew

allow the function to create a new variable in the TS?

Value

a vector of the values, with NA representing instances without this variable.

See also

Other LiPD manipulation: pullTsVariable(), tidyTs(), tidyTsOld(), untidyTs()