dim: The Number of Rows (Spectra), Columns, and Data Points per...

Description Usage Arguments Value Author(s) See Also Examples

Description

ncol returns the number of columns in x@data. I.e. the number of columns with additional information to each spectrum (e.g. "x", "y", ...) + 1 (for column spc containing the spectra).

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
## S4 method for signature 'hyperSpec'
ncol(x)

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

nwl(x)

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

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

Arguments

x

a hyperSpec object

Value

nrow, ncol, nwl, and length, return an integer.

dim returns a vector of length 3.

Author(s)

C. Beleites

See Also

ncol

nrow

dim

length

Examples

1
2
3
4
5
6
ncol (chondro)
nrow (chondro)

nwl  (chondro)
dim (chondro)
length (chondro)

hyperSpec documentation built on Sept. 13, 2021, 5:09 p.m.