Removes a linear trend.
detrend_ETG4000_data(x, type = "all", channel = NULL)
x | A data frame with an ETG-4000 data. |
---|---|
type | A string. Specifies the type of plot. Allowed: "all" or "single". |
channel | A numeric or string. If type is "single" then it has to be specified. |
A data frame.
file_path <- system.file("extdata", "Hitachi_ETG4000_24Ch_Total.csv", package = "fnirsr") ETG_header <- load_ETG4000_header(file_path) fnirs_signal <- load_ETG4000_data(file_path, ETG_header) plot_ETG4000(fnirs_signal)fnirs_det_24 <- detrend_ETG4000_data(fnirs_signal, "single", 24) # detrend only one channel plot_ETG4000(fnirs_det_24, "separate", 24)