Write a tidy simulation data.frame to CSV. A list of
saqr_sim objects (or a single one) is first flattened with
tidy_simulation_results; a data.frame is written
as-is.
Arguments
- x
A
data.frame, a singlesaqr_simobject, or a list ofsaqr_simobjects.- file
Character scalar. Path of the CSV file to write.
Examples
s <- run_scenario("power_ttest", seed = 1)
path <- tempfile(fileext = ".csv")
export_simulation(s, path)