ff (version 4.0.12)

dimnames.ffdf: Getting and setting dimnames of ffdf

Description

Getting and setting dimnames, columnnames or rownames

Usage

# S3 method for ffdf
dimnames(x)
  # S3 method for ffdf
dimnames(x) <- value
  # S3 method for ffdf
names(x)
  # S3 method for ffdf
names(x) <- value
  # S3 method for ffdf
row.names(x)
  # S3 method for ffdf
row.names(x) <- value

Value

The assignment function return the changed ffdf object. The other functions return the expected.

Arguments

x

a ffdf object

value

a character vector, or, for dimnames a list with two character vectors

Author

Jens Oehlschlägel

Details

It is recommended not to assign row.names to a large ffdf object.

See Also

ffdf, dimnames.ff, rownames, colnames

Examples

Run this code
  ffd <- as.ffdf(data.frame(a=1:26, b=letters, stringsAsFactors = TRUE))
  dimnames(ffd)
  row.names(ffd) <- letters
  dimnames(ffd)
  ffd
  rm(ffd); gc()

Run the code above in your browser using DataLab