leerPadron: Read data from the Padron module.

Description Usage Arguments Value Examples

Description

Read data from the Padron module.

Usage

1
2
leerPadron(anno=NULL,nivel="PROVINCIA",provincias=NULL,municipios=NULL,
	       sexos=NULL,edades=NULL,gruposEdad=NULL,nacionalidad=NULL,total=FALSE)

Arguments

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.

Value

A data.frame with the data. If there is an error return NULLL.

Examples

1
2
3
4
5
  ## Example
   
    a1=leerPadron(anno=2015:2017,nivel="PROVINCIA",
                   municipios=NULL,gruposEdad="DE 10 A 14",total=TRUE)
    

leerSIECyL documentation built on May 2, 2019, 10:16 a.m.