Learn R Programming

photobiology (version 0.11.4)

is_scaled: Query whether a generic spectrum has been scaled

Description

This function tests a generic_spct object for an attribute that signals whether the spectral data has been rescaled or not after the object was created.

Usage

is_scaled(x)

Value

A logical value. If x is not scaled or x is not a generic_spct object the value returned is FALSE.

Arguments

x

An R object.

See Also

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

Examples

Run this code

scaled.spct <- fscale(sun.spct)
is_scaled(sun.spct)
is_scaled(scaled.spct)

Run the code above in your browser using DataLab