save_bin: saving data as _gretl_ data bases

Description Usage Arguments Value Author(s) Examples

Description

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

Usage

1
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

Author(s)

Oleh Komashko

Examples

1
2
3
4
## Not run: 
save_bin("airmix ", merge_data(AirPassengers,airmiles))

## End(Not run)

Rgretl documentation built on May 2, 2019, 3:46 p.m.