tis (version 1.37.1)

updateColumns: Update lists and time series

Description

updateList compares the names of oldlist and newlist, deletes the matching elements from a copy of oldlist, then returns the result of concatenating that list with newlist.

updateColumns updates columns of first series from same-named columns of second series using mergeSeries(). If second series has columns with names not found in colnames of first series, those columns are cbind() 'ed onto first series.

Usage

updateColumns(oldmat, newmat)
updateList(oldlist, newlist)

Arguments

oldmat

a multivariate tis series

newmat

a multivariate tis series

oldlist

a list

newlist

a list

Value

updateList returns the updated list.

updateColumns returns a multivariate tis series

See Also

tis, mergeSeries, cbind.tis