Skip to contents

Calculates the change in oxygen density (delta od) for each channel from NIRS data, based on a reference value.

Usage

create_delta_ods(nirsData, reference = "baseline")

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'.

Value

a data frame which adds the delta od values for each channel to a new column.

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")
}