Learn R Programming

Stack (version 2.0-1)

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

.compact(x, use.na = TRUE, ...)
".compact"(x, use.na = TRUE, ...)
".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, not actually passed but needed to muffle check.

Value

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