json_to_tibble: Transforms and organize json output to a tibble

View source: R/utils.R

json_to_tibbleR Documentation

Transforms and organize json output to a tibble

Description

Transforms and organize json output to a tibble

Usage

json_to_tibble(l_in, id_in, name_in)

Arguments

l_in

Output of get_single_Quandl

id_in

Value of id

name_in

Name of id

Value

A beautiful dataframe

Examples


## 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)

GetQuandlData documentation built on Feb. 16, 2023, 5:53 p.m.