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

View source: R/descargar_datos_receptor.R

descargar_datos_receptorR Documentation

Download JSON files from 'presupuestoabierto.gob.cl' by recipient identification number

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 recipients of public resources per year.

Usage

descargar_datos_receptor(ruts, years, val = FALSE)

Arguments

ruts

A vector with the 'rut' of each recipient to download.

years

A vector with the years to download.

val

Logical. Delete variables that contain only NA? FALSE by default.

Value

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

Author(s)

Hugo Mansilla

See Also

fromJSON

select

Examples

## Not run: 
descargar_datos_receptor(c("70005600-7","81591900-9"),c(2016,2017,2018,2019),val=TRUE)

## End(Not run)

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