ff (version 2.2-14)

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

Arguments

x

a ffdf object

value

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

Value

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

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
# NOT RUN {
  ffd <- as.ffdf(data.frame(a=1:26, b=letters))
  dimnames(ffd)
  row.names(ffd) <- letters
  dimnames(ffd)
  ffd
  rm(ffd); gc()
# }

Run the code above in your browser using DataCamp Workspace