Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

fscale_spct

fscale a spectrum


Description

This function returns a spectral object of the same class as the one supplied as argument but with the spectral data re-scaled.

Usage

fscale_spct(spct, range, col.names, f, target, set.scaled, ...)

Arguments

spct

generic_spct The spectrum to be normalized

range

an R object on which range() returns a vector of length 2, with min and max wavelengths (nm)

col.names

character The name of the variable to fscale

f

function A summary function to be applied to spct

set.scaled

logical Flag indicating if the data is to be marked as "scaled" or not.

...

other arguments passed to f()

Value

a new object of the same class as spct.


photobiology

Photobiological Calculations

v0.10.10
GPL (>= 2)
Authors
Pedro J. Aphalo [aut, cre] (<https://orcid.org/0000-0003-3385-972X>), Titta K. Kotilainen [ctb] (<https://orcid.org/0000-0002-2822-9734>), Glenn Davis [ctb], Agnese Fazio [ctb]
Initial release
2022-03-24

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.