Learn R Programming

photobiology (version 0.11.4)

convertThickness: Convert the "thickness" attribute of an existing filter_spct object.

Description

Function to set the "thickness" attribute and simultaneously converting the spectral data to correspond to the new thickness.

Usage

convertThickness(x, thickness = NULL)

Value

x possibly with the "thickness" field of the

"filter.properties" attribute modified and Tfr or A

computed for the requested thickness.

Arguments

x

a filter_spct, object_spct, filter_mspct or object_mspct object.

thickness

numeric [\(m\)].

Details

For spectral transmittance at a different thickness to be exactly computed, it needs to be based on internal transmittance. This function will apply converTfrType() to x if needed, but to succeed metadata should be available. Please, see convertTfrType.

See Also

Other time attribute functions: checkTimeUnit(), convertTimeUnit(), getTimeUnit(), setTimeUnit()

Examples

Run this code

my.spct <- polyester.spct
filter_properties(my.spct)
convertThickness(my.spct, thickness = 250e-6)

Run the code above in your browser using DataLab