Skip to contents

abs(x) computes the absolute value of x, sqrt(x) computes the (principal) square root of x. The functions are applied to the spectral data, not the wavelengths. The quantity in the spectrum to which the function is applied depends on the class of x and the current value of output options.

Usage

# S3 method for class 'generic_spct'
sqrt(x)

# S3 method for class 'generic_spct'
abs(x)

Arguments

x

an object of class "generic_spct"