Description Usage Arguments Value Examples
Read data from the Padron module.
1 2 |
anno |
A vector with the years for the data. If NULL read all available years. |
nivel |
The desaggregation nivel of the data: MUNICIPIO, PROVINCIA or COMUNIDAD. |
provincias |
A vector with the provinces for the data. If is NULL and nivel is PROVINCIA read all available provinces. |
municipios |
A vector with the municipalities for the data. The name is of the form 'CCCCC Name', where CCCCC is the INE code and Name the name in uppercase of the municipality. The list of all municipalities can be obtained by setting nivel="MUNICIPIOS" and municipios=NULL. |
sexos |
If it is not null, the data is desegregated by sex. If it's TODOS they all come out, you can put VARON or MUJER. |
edades |
If it is not null, the data is desegregated by age. If it's TODAS they all come out, you can put a vector of ages. |
gruposEdad |
If it is not null, the data is desegregated by age group. If it's TODOS they all come out, you can put a vector of age groups. Id edades is not NULL is ignored. |
nacionalidad |
If it is not null, the data is desegregated by nationality. If it's TODAS they all come out, you can put a vector of nationalities. |
total |
If TRUE, the totals of each variable are output. |
A data.frame with the data. If there is an error return NULLL.
1 2 3 4 5 | ## Example
a1=leerPadron(anno=2015:2017,nivel="PROVINCIA",
municipios=NULL,gruposEdad="DE 10 A 14",total=TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.