flatten_json_rowSet: Flatten JSON result sets

Description Usage Arguments Details Value See Also

Description

Takes a list provided by JSON and flattens the rowSet element to a data.frame.

Usage

1
flatten_json_rowSet(json_result)

Arguments

json_result

A list returned by JSON containing the rowSet and headers

Details

The list is flattended by forcing any NULL values to NA, and then applying the unlist function. The data.frame is then returned with the attribute names set to the headers specified in the JSON data.

Value

A data.frame for the flattened JSON rowSet

See Also

type_converters map_results map_result_values


stephematician/statsnbaR documentation built on May 30, 2019, 3:17 p.m.