simulate_rcrds | R Documentation |
Simulate records
simulate_rcrds(.data, ..., .seed = NULL, .nsim = 1L)
.data |
An edibble data |
... |
A name-value pair where the name should correspond to the names
used in the |
.seed |
An optional seed value. |
.nsim |
The number of times to simulate data. |
design() %>%
set_units(unit = 4) %>%
set_trts(trt = 2) %>%
allot_table(trt ~ unit) %>%
set_rcrds(y = unit) %>%
simulate_process(y = function() {
res <- rnorm(n())
res
}) %>%
simulate_rcrds(y = with_params(), .nsim = 3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.