json.expand: expands JSON keys into dataframe columns

View source: R/utilities.R

json.expandR Documentation

expands JSON keys into dataframe columns

Description

expands JSON keys into dataframe columns

Usage

json.expand(data, fields)

Arguments

data

dataframe containing one or more columns of JSON

fields

a single or an array of column names containing JSON text

Value

dataframe with additional columns representing the JSON keys

Examples


# Multiple columns
data = json.expand(data, c("field1","field2"))
# OR single column
data = json.expand(data, "field1")


namc-utah/NAMCr documentation built on Feb. 12, 2024, 4:29 a.m.