descargar_datos_region: Download JSON files from 'presupuestoabierto.gob.cl' by...

View source: R/descargar_datos_region.R

descargar_datos_regionR Documentation

Download JSON files from 'presupuestoabierto.gob.cl' by region

Description

This function has been designed to download and consolidate JSON files from the webpage 'presupuestoabierto.gob.cl'. The output is a data set with all the information of public resources by region of Chile per year.

Usage

descargar_datos_region(region, years)

Arguments

region

A vector with the number of each region to download.

years

A vector with the years to download.

Value

Return a data set with all the information of public resources by region per year.

Author(s)

Hugo Mansilla

See Also

fromJSON

select

Examples

## Not run: 
descargar_datos_region(region=12,c(2016,2017,2018,2019,2020))

## End(Not run)

hugomansilla/presupuestochile documentation built on Oct. 15, 2022, 1:07 a.m.