Learn R Programming

ffbase (version 0.6-2)

compact: Compact a ff vector or ffdf data frame

Description

Compact takes a ff vector and tries to use the smallest binary data type for this vector.

Usage

## S3 method for class 'ff':
compact(x, use.na = TRUE, ...)

Arguments

x
ff or ffdf object
use.na
logical if TRUE the resulting ff vector can contain NA, otherwise this is not checked
...
other parameters

Value

  • compact cloned ff vector, or original if no compacting can be done