get_i_stat | R Documentation |
Download data sets from I.Stat (old ISTAT provider). Alternatively, use get_istatdata to download data sets from IstatData (new ISTAT provider). Note that in this first version of the package, only get_i_stat allows you to download variable labels, while get_istatdata has not this functionality yet. The parameters "id_dataset" to download data sets can be found using list_i_stat function or search_i_stat function.
get_i_stat(id_dataset,
start_period=NULL,
end_period=NULL,
recent=FALSE,
csv=FALSE,
xlsx=FALSE,
lang="both")
id_dataset |
data set id |
start_period |
Time value for the start (NULL by default) |
end_period |
Time value for the end (NULL bu default) |
recent |
False by default, if TRUE, the function retrieves data from last 10 years |
csv |
False by default, if TRUE, the function saves the data set to directory as .csv |
xlsx |
False by default, if TRUE, the function saves the data set to directory as .xlsx |
lang |
Language parameter for labels ("ita" for Italian, "eng" for English) |
It returns the data set as data.frame. It can be saved to environment or as .csv/.xlsx.
Downloading may take some time. Future versions will speed up the process.
get_i_stat("12_60")
get_i_stat("12_60", start_period=2015, end_period=2018)
get_i_stat("12_60", start_period=2015, end_period=2015)
get_i_stat("12_60", recent=TRUE, lang="eng")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.