check_parquet_file_compression | R Documentation |
This function checks the amount of compression attained when exporting a dataset using the Apache parquet file format, by the arrow package. It compares parquet file sizes for a dataset, exported uncompressed and compressed using different available compression types, with the equivalent dataset's file size exported as a csv file.
check_parquet_file_compression(
.data,
compression_type = c("snappy", "gzip", "brotli", "zstd", "lz4", "lzo")
)
.data |
dataset to be checked for amount of compression using parquet format. |
compression_type |
parquet compression types to check, defaults to all compression types ("snappy", "gzip", "brotli", "zstd", "lz4", "lzo") unless one or more specific compression types are supplied as a vector. |
message giving each file size and compression percentage
data(penguins, package = "palmerpenguins")
check_parquet_file_compression(penguins)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.