powered by
Convert a design list to JSON notation for archiving (e.g. in scienceverse)
json_design(design, filename = NULL, digits = 8, pretty = FALSE, ...)
a JSON string
a design list including within, between, n, mu, sd, r, dv, id
option name of file to save the json to
number of digits to save
whether to print condensed or readable
other options to send to jsonlite::toJSON
des <- check_design(2,2) json_design(des) json_design(des, pretty = TRUE)
Run the code above in your browser using DataLab