convert_df: Helper Function to Convert get_data output to data frame

View source: R/get-data.R

convert_dfR Documentation

Helper Function to Convert get_data output to data frame

Description

This function is for use with the df=TRUE argument with get_data. It converts the nested list containing the data into a data frame.

Usage

convert_df(parsed_data)

Arguments

parsed_data

output from jsonlite::fromJSON(httr::content(resp, "text"), simplifyVector = TRUE,flatten = TRUE) in the get_data function.

Value

a data frame of 1 row, where each column represents data a field of information from the nested list.


q-w-a/regulationsgov documentation built on May 3, 2022, 8:23 p.m.