Save expanded data as a data.table
data.table
save_to_datatable()
trial_to_expand <- trial_sequence("ITT") |> set_data(data = data_censored) |> set_expansion_options(output = save_to_datatable(), chunk_size = 500)
Other save_to: save_to_csv()
, save_to_duckdb()
, set_expansion_options()
Useful links