Learn R Programming

dataesgobr (version 1.0.0)

search_by_spatial: Creates a data.frame containing datasets from datos.gob.es

Description

Send a request to datos.gob.es using spatial params to search datasets that match with the spatial1 and spatial2, then the results are returned as data.frame

Usage

search_by_spatial(spatial1, spatial2, numentry = 50, page = 0)

Arguments

spatial1

First word of spatial. It can be: "Autonomia", "Pais" or "Provincia"

spatial2

Second word of spatial

numentry

Number of results for page

page

The number of page to see, the first page is 0

Value

A data.frame

Examples

Run this code
# NOT RUN {
library(dataesgobr)
# }
# NOT RUN {
datasetsAndalucia <- search_by_spatial('Autonomia', 'Andalucia')
datasetsJaen <- search_by_spatial('Provincia', 'Jaen')
# }

Run the code above in your browser using DataLab