pushTsVariable: push variable into of TS object

View source: R/lipdManipulation.R

pushTsVariableR Documentation

push variable into of TS object

Description

pulls all instances of a single variable out of a TS

Usage

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()


nickmckay/lipdR documentation built on April 13, 2025, 5:58 p.m.