Learn R Programming

hyperSpec (version 0.98-20110927)

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

See Also

ncolnrowdimlength

Examples

Run this code
ncol (chondro)

nrow (chondro)

nwl  (chondro)

dim (chondro)

length (chondro)

Run the code above in your browser using DataLab