bn_simulate | R Documentation |
Simulate data from bn_df object
bn_simulate(bn_df, known_df = NULL, pop_size, keep_all = FALSE, .id = NULL)
bn_df |
initialised bn_df object, with simulation instructions. Created with |
known_df |
data.frame. Optional data.frame containing upstream variables used for simulation. |
pop_size |
integer. The size of the dataset to be created. |
keep_all |
logical. Keep all simulated variables or only keep those specified by |
.id |
character. Name of id column placed at the start of the dataset. If NULL (default) then no id column is created. |
tbl
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.