flatten: Flatten a character vector of individual JSON lines into a...

Description Usage Arguments Value Examples

View source: R/ndjson.R

Description

Flatten a character vector of individual JSON lines into a tbl_dt

Usage

1
flatten(x, cls = c("dt", "tbl"))

Arguments

x

character vector of individual JSON lines to flatten

cls

the package uses data.table::rbindlist for speed but that's not always the best return type for everyone, so you have option of keeping it a tbl_dt via "dt" or converting it to a tbl

Value

tbl_dt or tbl or data.frame

Examples

1
flatten('{"top":{"next":{"final":1,"end":true},"another":"yes"},"more":"no"}')

ndjson documentation built on Sept. 21, 2018, 6:28 p.m.