Learn R Programming

hyperSpec (version 0.98-20110927)

dimnames: Dimnames for hyperSpec objects...

Description

Dimnames for hyperSpec objects

Usage

## S3 method for class 'hyperSpec':
dimnames(x)

## S3 method for class 'hyperSpec': rownames(x, do.NULL=TRUE, prefix="row")

## S3 method for class 'hyperSpec': rownames(x) <- value

## S3 method for class 'hyperSpec': colnames(x, do.NULL=TRUE, prefix="col")

## S3 method for class 'hyperSpec': colnames(x) <- value

Arguments

x
the hyperSpec object
do.NULL
handed to rownames or colnames: logical. Should this create names if they are NULL?
prefix
handed to rownames or colnames
value
the new names

Details

dimnames,hyperSpec-method: hyperSpec objects can have row- and column names like data.frames. The "names" of the wavelengths are treated separately: see wl

See Also

wl for the wavelength dimension

dimnamesrownamescolnames

Examples

Run this code
dimnames (flu)

rownames (flu)

colnames (chondro)

Run the code above in your browser using DataLab