Learn R Programming

Rgretl (version 0.2.2)

merge_data: merging data frames and/or (multiple) time-series objects as simple list

Description

Merges data frames and/or (multiple) time-series objects as simple list, with retainig time series structure (if any). If there were duplicated names, some components are renamed for all output list elements to have unique names. Can be used for creating datasets where individual series can have different lenghts and frequencies. Also it is used for data preparation to create gretl data bases.

Usage

merge_data(...)
# merge_data(airmiles,AirPassengers)

Arguments

R data objects, each can be data.frame, ts, or mts object.

Value

list

Examples

Run this code
# NOT RUN {
all_data <- merge_data(airmiles,AirPassengers)
head(all_data[1])
head(all_data[2])
# }

Run the code above in your browser using DataLab