Learn R Programming

Rgretl (version 0.2.2)

save_bin: saving data as gretl data bases

Description

Saves data in the form of a list containing time-series objects of different lengths and frequencies as gretl data bases.

Usage

save_bin(f_name, data_list, overwrite = FALSE, select = NULL)

Arguments

f_name

the name of file to be created or changed, as character vector; gretl data bases have 'bin' extension, which will be appended by default. The default path is current R working directory.

data_list

non-branched list (e.g. output of merge_data); its components must be ts objects; the set of admissible frequencies is determined by those, supported by gretl data bases: monthly, quortery, yearly; if data_list contains series with another frequencies they will not not saved and warning(s) will be produced.

overwrite

logical; save_bin is essentially a wrapper over gertl store "filename" --database [--overwrite] command; setting overwrite = TRUE switches on the corresponding option; execute run_grcli("help store") for details.

select

integer vector, must be a subset of 1:length(data_list); data_list could consist of dozens of thousands series, so a user may want to recode not all series.

Value

void

Examples

Run this code
# NOT RUN {
save_bin("airmix ", merge_data(AirPassengers,airmiles))
# }

Run the code above in your browser using DataLab