Learn R Programming

photobiology (version 0.10.6)

setResponseType: Set the "response.type" attribute

Description

Function to set by reference the "response.type" attribute of an existing response_spct object.

Usage

setResponseType(x, response.type = c("response", "action"))

Arguments

x

a response_spct object

response.type

a character string, either "response" or "action"

Value

x

Details

Objects of class response_spct() can contain data for a response spectrum or an action spectrum. Response spectra are measured using the same photon (or energy) irradiance at each wavelength. Action spectra are derived from dose response curves at each wavelength, and responsivity at each wavelength is expressed as the reciprocal of the photon fluence required to obtain a fixed level of response.

Examples

Run this code
# NOT RUN {
my.spct <- ccd.spct
setResponseType(my.spct, "action")

# }

Run the code above in your browser using DataLab