leerCoyuntura: Read data from the Coyuntura module.

Description Usage Arguments Details Value Examples

Description

Read data from the Coyuntura module, indicating the variables, periods, zone and frequency.

Usage

1
2
leerCoyuntura(variables = NULL, periodos = NULL, 
              nivel="COMUNIDAD AUTONOMA",zonas=NULL, frecuencia = "TRIMESTRE")

Arguments

variables

The names of the variables for read.

periodos

The periods for the data. If the frequency is for years they are the numbers of the years, if it is quarterly the format is N<ba> TRIM. YYYY, N is the quarter and YYYY the year. If the frequency is monthly the format is MM-YYYY with MM being the month number, always with two digits: 01, 02, ..., 12.

nivel

The level of disaggregation : PROVINCIA or COMUNIDAD AUTONOMA

zonas

A vector with the provinces if nivel is "PROVINCIA" or "CASTILLA y LEON" y/o "ESPA<d1>A" if nivel is "COMUNIDAD AUTONOMA"

frecuencia

The frequency of the data: YEAR (A<d1>O), QUARTER (TRIMESTRE) or MONTH (MES)

Details

If variables, periodos or zonas are NULL the data obtained are all available without considering the relevant condition.

Value

A data.frame with the data. If there is an error return NULLL. The data.frame with 5 columns. The columns are: ZONA: the name of province or comunidad. SERIE: The name of the variable. UNIDAD DE MEDIDA: The units of variable. ANNO or TRIMESTRE or MES : The period of the data. Valor: The data.

Examples

1
2
3
4
  ##-Examples
  
    datos=leerCoyuntura(nivel="PROVINCIA",periodos="1<ba> TRIM. 2017")
  

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