pulls all instances of a single variable out of a TS

pullTsVariable(TS, variable)

Arguments

TS

LiPD timeseries object See http://nickmckay.github.io/LiPD-utilities/r/index.html#what-is-a-time-series

variable

the name of variable in a TS object

Value

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