makeJson.data.frame | R Documentation |
Function to create a JSON from a data.frame
## S3 method for class 'data.frame'
makeJson(df, convert.logical = TRUE, dataframe = c("rows", "columns"))
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' |
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.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.