Description Usage Arguments Value Note Examples
This function downloads the requested information using the ISTACBASE API.
1 2 |
istacbase_table |
Character string with the |
islas |
Character vector of islands name requested. Default value is special code of |
label |
if |
POSIXct |
if |
startdate |
Numeric. Must be in %Y form (i.e. four digit year). |
enddate |
Numeric. Must be in %Y form (i.e. four digit year). |
freq |
Character String. For fetching yearly ("anual"), biannual ("semestral"), quaterly ("trimestral"), monthly("mensual"), bi-weekly("quincenal"), weekly("semanal") values.
Currently works along with |
mrv |
Numeric. The number of Most Recent Values to return. A replacement of |
cache |
Data frame with tables from ISTACBASE API. |
Data frame with all available requested data.
The POSIXct
parameter requries the use of lubridate
(>= 1.5.0). All dates
are rounded down to the floor. For example a value for the year 2016 would have a POSIXct
date of
2016-01-01
. If this package is not available and the POSIXct
parameter is set to TRUE
,
the parameter is ignored and a warning
is produced.
startdate
, enddate
, freq
, mrv
with POSISXct
=FALSE
are ignored when POSCIXct is set to FALSE.
and a warning
is produced.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | # Percentiles de renta disponible (año anterior al de la entrevista) por hogar en Canarias y años.
istacbase("soc.cal.enc.res.3637")
# query using startdate and enddate
# Percentiles de renta disponible (año anterior al de la entrevista) por hogar en Canarias y años.
istacbase("soc.cal.enc.res.3637", POSIXct = TRUE, startdate = 2010, enddate = 2015)
# query using \code{islas} filter
# Población según sexos y edades año a año. Islas de Canarias y años.
istacbase("dem.pob.exp.res.35", islas = "Fuerteventura")
# if you want the most recent values
istacbase("dem.pob.exp.res.35", POSIXct = TRUE, mrv = 4)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.