Calculate change in optical density (delta od) from NIRS data
Source:R/create_delta_ods.R
create_delta_ods.Rd
Calculates the change in oxygen density (delta od) for each channel from NIRS data, based on a reference value.
Arguments
- nirsData
(DATAFRAME) This should be in the format of the output from the function
import_nirs
.- reference
(STRING) specifying the reference value to use for calculating delta od. This can be either 'baseline' or 'mean'. If 'baseline', the baseline value for each channel is used as the reference value. If 'mean', the mean value for each channel is used as the reference value. Default is 'baseline'.
See also
import_nirs
, apply_mbll
Examples
if (FALSE) {
nirsData <- import_nirs("path/to/nirs/data.nir")
# Create the delta ODs
nirsData <- create_delta_ods(nirsData, reference = "baseline")
}