Description Usage Arguments Value Examples
Downloads, unpacks, imports, organizes and formats microdata from ENEM editions
1 | enem(years)
|
years |
years to get from INEP site informed in |
A list of lists, indexed by the years present in year
that could be processed.
For each year in years
, either one list is returned in case of success (total or
partial) or NULL
is returned in case of complete lack of success.
In case of success, the item for each year will be a list containing the following fields:
last.successful.step
– a string; either "download", "unpack", "import", "organize" or "format"
download.url
– URL used to download the packed archive
data.frame
– what you are really looking for; it will be here in case of full
success; it will be either one single data frame or a list of data frames or NULL
There might be one or more of the following additional fields in the following conditions:
If keep.download == TRUE
or if last.successful.step == download
,
downloaded.file
– path and name of the downloaded packed file
If last.successful.step == unpack
,
unpacked.files
– path of the directory where the archive was unpacked
If last.successful.step == import
,
raw.data.frames
– it will be either one single data frame or a list of data frames
1 2 | # getting data from years 2014 to 2016
enem(2014:2016)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.