Learn R Programming

spectrolab (version 0.0.18)

i_value: Internal constructor for value matrix

Description

i_value constructs value matrix in the appropriate format

Usage

i_value(x, nbands = NULL, nsample = NULL)

Value

data conformable to relative value: numeric matrix

Arguments

x

numeric matrix, dataframe or vector (in case of single spectrum)

nbands

Integer of expected number of bands. If NULL (default) checking is skipped.

nsample

Integer of expected number of samples. If NULL (default) checking is skipped.

Author

Jose Eduardo Meireles

Details

Coerces input form different formats into data conformable to value, which is a numeric matrix with no dimension names.