dimnamesR Documentation

Dimnames of an Object

Description

Retrieve or set the dimnames of a matrix.

Usage

## S4 method for signature 'fm'
dimnames(x)

## S4 method for signature 'fmV'
dimnames(x)

## S4 replacement method for signature 'fm,list'
dimnames(x) <- value

## S4 replacement method for signature 'fmV,list'
dimnames(x) <- value

Arguments

x

a FlashR matrix.

value

a list that provides values for dimension names.

Value

dimnames return NULL if there aren't dimension names. Otherwise, return the dimension names.

Examples

mat <- fm.runif.matrix(100, 10)
dimnames(mat)
dimnames(mat) <- list("dim1", "dim2")