compressr: changes the type of specified variables to integer

View source: R/compressr.R

compressrR Documentation

changes the type of specified variables to integer

Description

compressr is used to reduce the size of data files with double-precision storage of integer variables, by changing the storage type of these variables to integer.

Usage

compressr(mydf, ...)

Arguments

mydf

the dataframe to be modified.

...

a list of the variables to have their storage modes changed to integer.

Details

compressr is used internally by the Repeatr package.

Examples

mydf <- mtcars
mycompressrvars <- scan(text="vs am gear carb", what="")
mydf <- compressr(mydf, mycompressrvars)
mydf


alexmitrani/Repeatr documentation built on Feb. 3, 2025, 1:36 p.m.