make_url: Loads the file url_params and make urls to extract...

Description Usage Arguments Value Examples

Description

Loads the file url_params and make urls to extract information from the API

Usage

1
make_url(field, request, params = NULL)

Arguments

field

String to specifies the field that we want to search

request

String with the information to search

params

Optional list with the parameters to add to the query

Value

A string containing the url generated

Examples

1
2
3
4
5
6
7
library(dataesgobr)

# Generates the url associated to the id passed
url <- make_url("id", "a13002908-residentes-en-la-comunidad-de-madrid-por-lugar-de-nacimiento")

# Generates the url associated to the title and the parameters passed
url <- make_url("title", "atestados", c("sort" = "title", "pagesize" = 50, "page" = 1))

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