Simulate data from design (internal)

sim_data(design, empirical = FALSE, long = FALSE, rep = 1,
  seed = NULL, sep = faux_options("sep"))

Arguments

design

A list of design parameters created by check_design()

empirical

logical. If true, mu, sd and r specify the empirical not population mean, sd and covariance

long

Whether the returned tbl is in wide (default = FALSE) or long (TRUE) format

rep

the number of data frames to return (default 1); if greater than 1, the returned data frame is nested by rep

seed

a single value, interpreted as an integer, or NULL (see set.seed)

sep

separator for within-columns, defaults to _ (see tidyr::separate)

Value

a tbl