Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

dimnames

dimnames for hyperSpec objects


Description

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

Usage

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

## S4 method for signature 'hyperSpec'
rownames(x, do.NULL = TRUE, prefix = "row")

## S4 replacement method for signature 'hyperSpec'
 rownames(x) <- value

## S4 method for signature 'hyperSpec'
colnames(x, do.NULL = TRUE, prefix = "col")

## S4 replacement method for signature '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

Author(s)

C. Beleites

See Also

wl for the wavelength dimension

Examples

dimnames (flu)
rownames (flu)
colnames (chondro)

hyperSpec

Work with Hyperspectral Data, i.e. Spectra + Meta Information (Spatial, Time, Concentration, ...)

v0.100.0
GPL (>= 3)
Authors
Claudia Beleites [aut, cre, dtc] (<https://orcid.org/0000-0003-1626-154X>), Valter Sergo [aut], Alois Bonifacio [ctb, dtc], Marcel Dahms [ctb], Björn Egert [ctb], Simon Fuller [ctb], Vilmantas Gegzna [ctb], Rustam Guliev [ctb], Bryan A. Hanson [ctb], Michael Hermes [ctb], Martin Kammer [dtc], Roman Kiselev [ctb], Sebastian Mellor [ctb]
Initial release
2021-09-13

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.