parse_dopa_response: Coerce a DOPA response object into a dataframe

View source: R/utils.R

parse_dopa_responseR Documentation

Coerce a DOPA response object into a dataframe

Description

DOPA responses are often structured as lists of lists. Turn this into a data structure.

Usage

parse_dopa_response(x)

Arguments

x

list of lists

Details

By default, function content parses nulls in JSON into NULLs in R, which causes problems in data.frame coercion. Therefore replace NULLs with NA.

Value

Data frame of response data

Author(s)

Joona Lehtomaki <joona.lehtomaki@gmail.com>


ropensci/rdopa documentation built on May 18, 2022, 6:32 p.m.