Save an R object as a Parquet file
save_parquet.Rd
This function saves an R object (e.g., a data frame) as a Parquet file using the arrow package. The file is saved in the specified directory with the object's name as the file name.
Arguments
- obj
The R object to be saved as a Parquet file. This is typically a data frame.
- path
The directory where the Parquet file will be saved. Defaults to the current working directory.
- save
logical, if FALSE object is returned without saving
Examples
my_dataframe <- data.frame(a = 1:5, b = letters[1:5])
save_parquet(my_dataframe)
#> a b
#> 1 1 a
#> 2 2 b
#> 3 3 c
#> 4 4 d
#> 5 5 e