Run a datasim simulation, producing a data frame
datasim_run(sim, n = 5, seed = NULL, report_hidden = FALSE)
a data frame with a column for each node in the datasim object.
A simulation object, as produced by datasim_make()
.
The size of the data sample pulled from the simulation.
An integer random number seed, for reproducibility. (Or, use set.seed()
before
running sim_run()
.)
logical. If TRUE
, show the values of hidden variables (that is, variables whose name
begins with a dot)