df_to_json: Export 'data.frame' to 'JSON'

Description Usage Arguments

View source: R/df_to_json.R

Description

This is based on the type of JSON file that the original nutrient Parallel Coordinates was built off of. It seems to be sort of "row oriented", whereas rjson::toJSON is "column oriented".

Usage

1
df_to_json(df, file, varname = "foods")

Arguments

df

data.frame to convert

file

name of file to save to

varname

name of variable to assign to the JSON object


pocdata/pocr documentation built on Jan. 5, 2022, 9:54 a.m.