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

1
2
3
4
5
6
7
.compact(x, use.na = TRUE, ...)

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

## S3 method for class 'ffdf'
.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


Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

All documentation is copyright its authors; we didn't write any of that.