dimnames.ffdf | R Documentation |
Getting and setting dimnames, columnnames or rownames
## S3 method for class 'ffdf'
dimnames(x)
## S3 replacement method for class 'ffdf'
dimnames(x) <- value
## S3 method for class 'ffdf'
names(x)
## S3 replacement method for class 'ffdf'
names(x) <- value
## S3 method for class 'ffdf'
row.names(x)
## S3 replacement method for class 'ffdf'
row.names(x) <- value
x |
a |
value |
a character vector, or, for dimnames a list with two character vectors |
It is recommended not to assign row.names to a large ffdf object.
The assignment function return the changed ffdf object. The other functions return the expected.
Jens Oehlschlägel
ffdf
, dimnames.ff
, rownames
, colnames
ffd <- as.ffdf(data.frame(a=1:26, b=letters, stringsAsFactors = TRUE))
dimnames(ffd)
row.names(ffd) <- letters
dimnames(ffd)
ffd
rm(ffd); gc()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.