dt_fst | R Documentation |
Short hand to
as.data.table(read_fst())
.
File extension can be omitted.
dt_fst(path_base, name = NULL, ext = ".fst")
path_base |
A character string, providing the path to read from. |
name |
A character string, the file name. |
ext |
A character string, optional, specifying the file extension. |
Output is a data.table.
The function is deprecated, with the use of parquet tables. Tables can now
be loaded IN-memory or OUT of memory with dt_parquet
.
A data.table, read from path_base/(name)
.
dt_parquet()
, tb_vigibase()
, tb_who()
, tb_meddra()
# Say you have a data.frame stored in an fst format, such as this one
df <- data.frame(a = 1:10)
path <- paste0(tempdir(), "/dtfstex")
dir.create(path)
fst::write_fst(x = df,
path = paste0(path, "/", "df.fst")
)
# Now you have a new session without df.
rm(df)
# You may import the file directly to data.table format with dt_fst
df <- dt_fst(path, "df")
# Clean up (required for CRAN checks)
unlink(path, recursive = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.