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

Description Usage Arguments Value Examples

Description

Send a request to datos.gob.es using the title param to search datasets that match with the title, then the results are returned as data.frame

Usage

1
search_by_title(title, numentry = 50, page = 0)

Arguments

title

Title to search

numentry

Number of results for page

page

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

Value

A data.frame containing information about datasets that match with the title param

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
library(dataesgobr)

# Return first 50 matches that contain puente in their title
mydataesgobr <- search_by_title('puente')

# Return the first 78 matches that contain gasto in their title
mydataesgobr <- search_by_title('gasto', 78)

# Return the first 78 matches that contain gasto in their title found in the
# second page (number 1)
mydataesgobr <- search_by_title('gasto', 78, page = 1)

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