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
search_by_title(title, numentry = 50, page = 0)
Title to search
Number of results for page
The number of page to see, the first page is 0
A data.frame containing information about datasets that match with the title param
# 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