opt_df: Memory-Efficient Data Frame
Description
Converts a data frame to a memory-efficient format by optimizing column types.
Usage
opt_df(df, compress_strings = FALSE, verbose = TRUE)
Value
Memory-efficient version of the input data frame
Arguments
- df
Data frame to optimize
- compress_strings
Logical, whether to convert character columns to factors
- verbose
Logical, whether to print memory savings information