Description Usage Arguments Value Author(s) Examples
The function can open data files of the following formats: ‘*.gdt, *.gdtb’ (gretl data files), ‘*.csv’, ‘*.txt’, ‘*.gnumeric’ (Gnumeric), ‘*.ods’ (Open Document), ‘*.xls, *.xlsx’ (Excel), ‘*.dta’ (Stata), ‘*.wf1’ (Eviews), ‘*.sav’ (SPSS), ‘*.xpt’ (SAS xport), ‘*.dat’ (JMulTi).
1 2 |
fpath |
quoted name of a data file; the rules of adding the full path are the same as in gretl; can open data files of all gretl-supported formats: Stata, E-views, SPSS, SAS, etc. Path to a file is not needed for gretl sample files and for files in gretl working directory |
mkstruct |
logical; whether to preserve time series structure; currently only yearly, quarteerly, monthly, weekly and dayly data are supported: in these cases the output data frame columns will be |
info |
logical; whether to import data description (if any); if |
data.frame
if info = TRUE
it will have "description" attribute.
Oleh Komashko
1 2 3 4 5 6 7 8 | denmark = open_gdt("denmark.gdt")
head(denmark)
description(denmark)
## Not run:
gold = open_gdt("http://www.principlesofeconometrics.com/poe4/data/stata/gold.dta")
description(gold)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.