Learn R Programming

dataesgobr (version 1.0.0)

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

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

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

Run this code
# NOT RUN {
library(dataesgobr)
# }
# NOT RUN {
# 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)
# }

Run the code above in your browser using DataLab