Getting and setting dimnames
dimnames.ff.rdFor ff_arrays you can set dimnames.
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
Examples
x <- ff(1:12, dim=c(3,4), dimnames=list(letters[1:3], LETTERS[1:4]))
dimnames(x)
#> [[1]]
#> [1] "a" "b" "c"
#>
#> [[2]]
#> [1] "A" "B" "C" "D"
#>
dimnames(x) <- list(LETTERS[1:3], letters[1:4])
dimnames(x)
#> [[1]]
#> [1] "A" "B" "C"
#>
#> [[2]]
#> [1] "a" "b" "c" "d"
#>
dimnames(x) <- NULL
dimnames(x)
#> NULL
rm(x); gc()
#> used (Mb) gc trigger (Mb) max used (Mb)
#> Ncells 1226570 65.6 2239654 119.7 2239654 119.7
#> Vcells 2247420 17.2 8388608 64.0 5871749 44.8