Skip to contents

This function will remove the specified channels from the NIRS data. This can be useful if you have channels that are not required for your analysis or if channels are saturated or weak, or noisy.

Usage

remove_channels(nirsData, channels)

Arguments

nirsData

(DATAFRAME) NIRS data that has been imported using the import_nirs function.

channels

(VECTOR) Channel names to remove from the NIRS data. The channel names must match the names in the optode column of the nirs data (i.e., 1-16).

Value

A dataframe with the specified channels removed.

See also

Examples

if (FALSE) {
nirsData <- import_nirs("path/to/nir/file.nir")
problem_channels <- c("1", "2", "3")
nirsData <- remove_channels(nirsData, problem_channels)
}