fix_vmode: fix_vmode adjust the vmode of a vector to the lowest...

View source: R/utils-ff.R

fix_vmodeR Documentation

fix_vmode adjust the vmode of a vector to the lowest necessary to save it as ff

Description

fix_vmode adjust the vmode of a vector to the lowest necessary to save it as ff

Usage

fix_vmode(vec)

Arguments

vec

the vector to be adapted

Value

a vector with the vmode attribute set appropriately

Examples


library(ff)
test <- 1:5
test <- fix_vmode(test)
vmode(test) # "nibble"
test <- fix_vmode(test[1:3])
vmode(test) # "quad"


skysyzygy/tessilake documentation built on June 14, 2025, 6:50 p.m.