convert_list_to_tibble | R Documentation |
Convert list provided by the APIs into a tibble
convert_list_to_tibble(l)
l |
a list provided by the API (See doApiQuery) |
This function is used internally by all the retrieving data functions for converting data after the call to doApiQuery.
A tibble::tibble with one row by record and one column by field.
# To get the available APIs in the package
list_apis()
# To get the available endpoints in an API
list_endpoints("prelevements")
# To get available parameters in endpoint "chroniques" of the API "prelevements"
list_params(api = "prelevements", endpoint = "chroniques")
# To query the endpoint "chroniques" of the API "prelevements"
# on all devices in the commune of Romilly-sur-Seine in 2018
## Not run:
resp <- doApiQuery(api = "prelevements",
endpoint = "chroniques",
code_commune_insee = "10323",
annee = "2018")
convert_list_to_tibble(resp)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.