json_design: Convert design to JSON

Description Usage Arguments Value Examples

View source: R/json_design.R

Description

Convert a design list to JSON notation for archiving (e.g. in scienceverse)

Usage

1
json_design(design, filename = NULL, digits = 8, pretty = FALSE, ...)

Arguments

design

a design list including within, between, n, mu, sd, r, dv, id

filename

option name of file to save the json to

digits

number of digits to save

pretty

whether to print condensed or readable

...

other options to send to jsonlite::toJSON

Value

a JSON string

Examples

1
2
3
des <- check_design(2,2)
json_design(des)
json_design(des, pretty = TRUE)

faux documentation built on Sept. 14, 2021, 1:08 a.m.