Skip to contents

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)

Arguments

x

An R object.

Value

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

Examples


scaled.spct <- fscale(sun.spct)
is_scaled(sun.spct)
#> [1] FALSE
is_scaled(scaled.spct)
#> [1] TRUE