Learn R Programming

dbparser (version 2.3.0)

openfda_list_rows: One row per element of each record's list field

Description

One row per element of each record's list field

Usage

openfda_list_rows(records, keys, list_field, columns)

Value

data.frame, the parent key columns first

Arguments

records

list of records

keys

function(record) giving a named list of the parent's keys

list_field

name of the list field, e.g. "products"

columns

fields to take from each element