Description Usage Arguments Value References See Also Examples
Add an endpoint to an already-existing soql
object.
1 | soql_add_endpoint(soql_list, endpoint)
|
soql_list |
The |
endpoint |
The endpoint should be the URL of the data, without any parameters. |
Returns a new soql
object, with the endpoint added, for use in other functions.
Socrata's documentation on what an endpoint is
1 2 3 4 5 6 7 8 9 10 11 | if (require(magrittr)) {
# With pipes
my_url <- soql() %>%
soql_add_endpoint("https://fake.soda.api/resource.json") %>%
as.character()
} else {
# Without pipes
soql_chain <- soql()
soql_chain <- soql_add_endpoint(soql_chain, "https://fake.soda.api/resource.json")
my_url <- as.character(soql_chain)
}
|
Loading required package: magrittr
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.