| write_simulation | R Documentation |
Export a simulation component
write_simulation(x, file, what = "data")
x |
A |
file |
Destination path. The extension decides the format and must be
|
what |
Single string naming the component to write, default |
The normalized output path, invisibly.
result <- simulate_ttest(n_a = 20, n_b = 20, mean_a = 0, mean_b = 0.5, seed = 1)
file <- tempfile(fileext = ".csv")
write_simulation(result, file = file)
head(utils::read.csv(file))
unlink(file)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.