dimnames.ffdf: Getting and setting dimnames of ffdf

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/ffdf.R

Description

Getting and setting dimnames, columnnames or rownames

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
  ## 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<c3><a4>gel

See Also

ffdf, dimnames.ff, rownames, colnames

Examples

1
2
3
4
5
6
  ffd <- as.ffdf(data.frame(a=1:26, b=letters))
  dimnames(ffd)
  row.names(ffd) <- letters
  dimnames(ffd)
  ffd
  rm(ffd); gc()

kindlychung/ff documentation built on May 20, 2019, 9:58 a.m.