ncol

The Number of Rows (Spectra), Columns, and Data Points per Spectrum of an hyperSpec Object)

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", ...

Keywords
methods
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

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

    dim returns a vector of length 3.

code

seq_along (x)

See Also

ncol

nrow

dim

length

Aliases
  • dim
  • dim,hyperSpec-method
  • length
  • length,hyperSpec-method
  • ncol
  • ncol,hyperSpec-method
  • nrow
  • nrow,hyperSpec-method
  • nwl
Examples
ncol (chondro)
nrow (chondro)
nwl  (chondro)
dim (chondro)
length (chondro)
Documentation reproduced from package hyperSpec, version 0.98-20140523, License: GPL (>= 3)

Community examples

Looks like there are no examples yet.