View source: R/fst_to_parquet.R
| fst_to_parquet | R Documentation | 
This function allows to convert a fst file to parquet format. 
Two conversions possibilities are offered :
Convert to a single parquet file. Argument 'path_to_parquet' must then be used;
Convert to a partitioned parquet file. Additionnal arguments 'partition' and 'partitioning' must then be used;
fst_to_parquet(
  path_to_file,
  path_to_parquet,
  partition = "no",
  compression = "snappy",
  compression_level = NULL,
  ...
)
path_to_file | 
 String that indicates the path to the input file (don't forget the extension).  | 
path_to_parquet | 
 String that indicates the path to the directory where the parquet files will be stored.  | 
partition | 
 String ("yes" or "no" - by default) that indicates whether you want to create a partitioned parquet file. If "yes", '"partitioning"' argument must be filled in. In this case, a folder will be created for each modality of the variable filled in '"partitioning"'. Be careful, this argument can not be "yes" if 'max_memory' or 'max_rows' argument are not NULL.  | 
compression | 
 compression algorithm. Default "snappy".  | 
compression_level | 
 compression level. Meaning depends on compression algorithm.  | 
... | 
 additional format-specific arguments, see arrow::write_parquet() and arrow::write_dataset() for more informations.  | 
A parquet file, invisibly
# Conversion from a local fst file to a single parquet file ::
fst_to_parquet(
  path_to_file = system.file("extdata","iris.fst",package = "parquetize"),
  path_to_parquet = tempfile(fileext = ".parquet")
)
# Conversion from a local fst file to a partitioned parquet file  ::
fst_to_parquet(
  path_to_file = system.file("extdata","iris.fst",package = "parquetize"),
  path_to_parquet = tempfile(fileext = ".parquet"),
  partition = "yes",
  partitioning =  c("Species")
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.