View source: R/misc_functions.R
csv_to_fst | R Documentation |
This function converts one or more CSV files to the FST file format. It reads each CSV file using data.table::fread
and writes it as an FST file using fst::write_fst
. Optionally, the original CSV file(s) can be deleted.
csv_to_fst(csv_files, compression = 100L, delete_csv = FALSE)
csv_files |
A character vector of file paths to CSV files. |
compression |
An integer specifying the compression level for the FST file. Default is 100L. |
delete_csv |
Logical. If TRUE, deletes the original CSV file(s) after conversion. Default is FALSE. |
Invisibly returns NULL.
## Not run:
csv_to_fst(c("data.csv"), compression = 100L, delete_csv = TRUE)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.