Learn R Programming

photobiology (version 0.10.9)

setNormalized: Set the "normalized" and "normalization" attributes

Description

Function to write the "normalized" attribute of an existing generic_spct object.

Usage

setNormalized(
  x,
  norm = FALSE,
  norm.type = NA_character_,
  norm.factors = NA_real_,
  norm.cols = NA_character_
)

setNormalised( x, norm = FALSE, norm.type = NA_character_, norm.factors = NA_real_, norm.cols = NA_character_ )

Arguments

x

a generic_spct object.

norm

numeric (or logical) Normalization wavelength (nanometres).

norm.type

character Type of normalization applied.

norm.factors

numeric The scaling factor(s) so that dividing the spectral values by this factor reverts the normalization.

norm.cols

character The name(s) of the data columns normalized.

See Also

Other rescaling functions: fscale(), fshift(), getNormalized(), getScaled(), is_normalized(), is_scaled(), normalize(), setScaled()