get_sinim: Get a SINIM variable data in a specific year as a data frame

View source: R/get_sinim.R

get_sinimR Documentation

Get a SINIM variable data in a specific year as a data frame

Description

Get a SINIM variable data in a specific year as a data frame

Usage

get_sinim(
  var,
  year,
  moncorr = T,
  truevalue = F,
  idgeo = F,
  geometry = F,
  region,
  provincia,
  comuna,
  auc = F,
  unit = "comunas"
)

Arguments

var

Variable code

year

Year

moncorr

A logical value indicating the use of monetary correction

truevalue

A logical value indicating the use of converted values

idgeo

A logical value to add provincia and region columns

geometry

A logical value to add geographical features

region

Region subsetting variable

provincia

Provincia subsetting variable

comuna

Comuna subsetting variable

auc

A logical value to retrieve only AUC features

unit

Use "comunas" or "limites"

Value

data frame for the requested variable over time with optional geometry

Examples

get_sinim(880, 2015)
get_sinim(880, 2015:2017)
get_sinim(c(880, 882), 2015)
get_sinim(c(880, 882), 2015:2017)
get_sinim(c(880, 882), 2015, idgeo=TRUE)
get_sinim(882, 2015, geometry=TRUE)
get_sinim(882, 2015, region="02")

robsalasco/sinimr documentation built on March 6, 2023, 6:11 a.m.