Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

dimnames.ff

Getting and setting dimnames


Description

For ff_arrays you can set dimnames.

Usage

## S3 method for class 'ff_array'
dimnames(x)
  ## S3 replacement method for class 'ff_array'
dimnames(x) <- value

Arguments

x

a ff array (or matrix)

value

a list with length(dim(x)) elements (either NULL of character vector of length of dimension

Details

if vw is set, dimnames.ff\_array returns the appropriate part of the names, but you can't set dimnames while vw is set. dimnames returns NULL for ff_vectors and setting dimnames for ff_vector is not allowed, but setting names is.

Value

dimnames returns a list, see dimnames

Author(s)

Jens Oehlschlägel

See Also

Examples

x <- ff(1:12, dim=c(3,4), dimnames=list(letters[1:3], LETTERS[1:4]))
  dimnames(x)
  dimnames(x) <- list(LETTERS[1:3], letters[1:4])
  dimnames(x)
  dimnames(x) <- NULL
  dimnames(x)
  rm(x); gc()

ff

Memory-Efficient Storage of Large Data on Disk and Fast Access Functions

v4.0.4
GPL-2 | GPL-3 | file LICENSE
Authors
Daniel Adler [aut], Christian Gläser [aut], Oleg Nenadic [aut], Jens Oehlschlägel [aut, cre], Martijn Schuemie [aut], Walter Zucchini [aut]
Initial release
2020-10-13

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.