save_to_csv function

Save expanded data as CSV

Save expanded data as CSV

Description

save_to_csv(path)

Arguments

  • path: Directory to save CSV files in. Must be empty.

Returns

A te_datastore_csv object.

Examples

csv_dir <- file.path(tempdir(), "expanded_trials_csv") dir.create(csv_dir) csv_datastore <- save_to_csv(path = csv_dir) trial_to_expand <- trial_sequence("ITT") |> set_data(data = data_censored) |> set_expansion_options(output = csv_datastore, chunk_size = 500) # Delete directory after use unlink(csv_dir)

See Also

Other save_to: save_to_datatable(), save_to_duckdb(), set_expansion_options()