json_to_tibble | R Documentation |
Transforms and organize json output to a tibble
json_to_tibble(l_in, id_in, name_in)
l_in |
Output of get_single_Quandl |
id_in |
Value of id |
name_in |
Name of id |
A beautiful dataframe
## Not run: my_id <- 'BCB/7832' my_api <- 'YOURAPIHERE' json_link <- sprintf( paste0('https://www.quandl.com/api/v3/datasets/%s', '.json?start_date=2010-01-01?end_date=2019-09-30?', 'order=asc?collapse=none?transform=none?api_key=%s'), my_id, my_api) l_out <- jsonlite::fromJSON(json_link) df <- json_to_tibble(l_out, id_in = my_id, name_in = 'Ibov change') ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.