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

Description Usage Arguments Value Examples

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

1
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

1
2
3
4
library(dataesgobr)

datasetsAndalucia <- search_by_spatial('Autonomia', 'Andalucia')
datasetsJaen <- search_by_spatial('Provincia', 'Jaen')

dataesgobr documentation built on June 18, 2019, 5:04 p.m.