View source: R/export_schedule.R
| export_schedule | R Documentation |
Export a randomization schedule to a CSV file.
export_schedule(schedule, file, row.names = FALSE)
schedule |
A data frame or tibble generated by ExpDesignR. |
file |
Character. Output CSV filename or path. This argument must be supplied explicitly. |
row.names |
Logical. Should row names be written? |
Invisibly returns the input schedule unchanged.
The function writes the schedule to the CSV file specified by
file.
sch <- simple_randomization(
n = 20,
groups = c("Control", "Treatment"),
seed = 123
)
tf <- tempfile(fileext = ".csv")
export_schedule(
sch,
file = tf
)
unlink(tf)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.