Save RDS / CSV / FST
write_file.Rd
Een generieke functie die een R object in zowel een RDS, CSV als fst opslaat.
Usage
write_file(
Object_to_save,
Name_to_save,
destination = NULL,
save_csv = FALSE,
save_fst = FALSE,
save_rds = FALSE,
show_rownames = FALSE
)
Arguments
- Object_to_save
Data object to write.
- Name_to_save
File name to use when writing (without extension).
- destination
Optional argument to set write location.
- save_csv
Default FALSE: whether to write file as a csv file.
- save_fst
Default FALSE: whether to write file as a fst file.
- save_rds
Default FALSE: whether to write file as a rds file.
- show_rownames
Whether to write row names in file