df.split: Splitting a Multivariate Time Series Data Frame into...

Description Usage Arguments Details Author(s) See Also Examples

Description

This function splits a multivariate time series data frame into individual data frames containing each time series and a common variable shared by them. The individual data frames are stored and returned in a list. A common example of the "common variable" is Date.

Usage

1
df.split(dataframe=NULL, by=NULL)

Arguments

dataframe

the multivariate time series dataframe to be splitted.

by

character; the common variable to be shared by the individual data frames.

Details

Sometimes, the merge function in R returns zero observations when dealing with data frames containing large amounts of columns. A good way to go about this is to split those large data frames into individual data frames and merge them with the reduce function.

Author(s)

Zehua Wu

See Also

df.merge

Examples

1
2
data("US_Unemployment")
data.list<-df.split(dataframe=US_Unemployment, by="Date")

google-trends-v1/gtm documentation built on June 5, 2019, 5:13 p.m.