makeJson.data.frame: JSON converter for data frames

Description Usage Arguments Value

View source: R/v1-jsonConvert.R

Description

Function to create a JSON from a data.frame

Usage

1
2
## S3 method for class 'data.frame'
makeJson(df, convert.logical = TRUE, dataframe = c("rows", "columns"))

Arguments

df

the data.frame to be converted into JSON

convert.logical

whether to convert logicals into strings "TRUE" and "FALSE"

dataframe

how to encode data.frame objects: must be one of 'rows', 'columns'

Value

a stringified JSON, the data.frame is encoded as a vector of objects, with each column being one object with keys corresponding to column names.


Glimma documentation built on Nov. 8, 2020, 6:13 p.m.