Skip to the content.

presupuestochile

Overview

This package has been designed to download and consolidate JSON files from the webpage www.presupuestoabierto.gob.cl.

Installation

if(!require(devtools)) install.packages("devtools")
devtools::install_github("hugomansilla/presupuestochile")

Usage

# load library 
library(presupuestochile)

## Examples

# config parameters 
ruts <- c("70005600-7","81591900-9","70892200-5","72109700-5")
years <- c(2016,2017,2018,2019,2020,2021,2022)
region <- 12

# download data by recipient of public resources 
data_receptor <- descargar_datos_receptor(ruts,years)

# download data by region of Chile
data_region <- descargar_datos_region(region,years)

GIT

To download the latest source from the Git server do this:

git clone https://github.com/hugomansilla/presupuestochile.git

(you’ll get a directory named presupuestochile, filled with the source code)

Contact

If you have problems, questions, ideas or suggestions, please contact me at this email: hugomansilla@gmail.com