apiDF: Creates data frame after data is called using blsAPI.R

View source: R/apiDF.R

apiDFR Documentation

Creates data frame after data is called using blsAPI.R

Description

Used in the laus_get_data function

Usage

apiDF(data)

Arguments

data

The JSON used to extract the data gathered from the blsAPI function

Value

returns a data frame of the data requested from the bLSAPI function call

Examples

library(blsAPI)
library(rjson)
response <- blsAPI('LAUCN040010000000005')
json <- fromJSON(response)
df <- apiDF(json$Results$series[[1]]$data)


mikeasilva/blsAPI documentation built on May 11, 2023, 4:57 a.m.