dimnames.ffdf: Getting and setting dimnames of ffdf

View source: R/ffdf.R

dimnames.ffdfR Documentation

Getting and setting dimnames of ffdf

Description

Getting and setting dimnames, columnnames or rownames

Usage

  ## 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

Arguments

x

a ffdf object

value

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

Details

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

Value

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

Author(s)

Jens Oehlschlägel

See Also

ffdf, dimnames.ff, rownames, colnames

Examples

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

ff documentation built on Feb. 16, 2023, 7:48 p.m.

Related to dimnames.ffdf in ff...