import_json: Import a 'predx'-formatted JSON file as a 'predx' data frame

Description Usage Arguments Value Examples

View source: R/import_json.R

Description

Import a predx-formatted JSON file as a predx data frame

Usage

1

Arguments

json_file

Value

A predx data frame.

Examples

1
2
3
4
5
6
7
8
predx_demo <- as.predx_df(list(
 location = c('Mercury', 'Venus', 'Earth'),
 target = 'habitability',
 predx = list(Binary(1e-4), Binary(1e-4), Binary(1))
))
json_tempfile <- tempfile()
export_json(predx_demo, json_tempfile)
import_json(json_tempfile)

cdcepi/predx documentation built on Dec. 29, 2019, 4:58 p.m.