View source: R/sma_read_files.R
sma_read_files | R Documentation |
Read output files
sma_read_files(fun, path = ".", folder = "analysis0000001", id = 1)
fun |
The function from which to read the ouput file. Options are sma_analyse_files, sma_derive_files and sma_evaluate_files. |
path |
A string. The object is read using this path. |
folder |
A string for the name of the folder within the path that contains the analysis. |
id |
An integer for the index of the object to extract. |
The object read from files.
params <- nlist(mu=0) sims::sims_simulate("a ~ dnorm(mu, 1)", parameters = params, nsims = 5, save = TRUE, path=tempdir(), exist = NA) sma_analyse_files(code = "a ~ dnorm(mu, 1) mu ~ dunif(-3,3)", mode = sma_set_mode("quick"), monitor = "mu", path = tempdir()) sma_evaluate_files(parameters = params, path = tempdir()) sma_read_files(sma_evaluate_files, path = tempdir())
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.