dim: The Number of Rows (Spectra), Columns, and Data Points per Spectrum of an...
Description
The Number of Rows (Spectra), Columns, and Data Points per Spectrum of an
hyperSpec Object)
Usage
## S3 method for class 'hyperSpec':
ncol(x)
## S3 method for class 'hyperSpec':
nrow(x)
nwl(x)
## S3 method for class 'hyperSpec':
dim(x)
## S3 method for class 'hyperSpec':
length(x)
Arguments
x
a hyperSpec object
Value
ncol,hyperSpec-method: nrow, ncol, nwl, and length, return an
integer.
dim,hyperSpec-method: dim returns a vector of length 3.
code
spc
Details
ncol,hyperSpec-method: 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",
...