Save survey data to .fst file in specified output directory.

save_survey_data(
  dt,
  cols = NULL,
  output_dir,
  cache_filename,
  future_plan = c("sequential", "multisession", "callr"),
  compress,
  save = TRUE,
  load = FALSE,
  verbose = FALSE
)

Arguments

dt

Data frame from cache to be saved

cols

character: Vector with columns to save. If NULL all columns are saved.

output_dir

character: Output folder.

cache_filename

character: Vector with new names for microdata.

future_plan

character: future plan to use.

compress

numeric: Compression level used in fst::write_fst().

save

logical: if TRUE save data file. Default is TRUE

load

logical: if TRUE loads data. Default is FALSE and returns file directory path

verbose

logical: Whether to display messages. Default is TRUE