epoch_ETG4000: Epoch the ETG-4000 data

Description Usage Arguments Value Examples

Description

Epoch the ETG-4000 data

Usage

1
epoch_ETG4000(x, trigger, start_epoch, end_epoch)

Arguments

x

A data frame with an ETG-4000 data.

trigger

A code used to represent a trigger, e.g. 1.

start_epoch

A numeric. Number of samples before the trigger. Start of the epoch.

end_epoch

A numeric. Number of samples after the trigger. End of the epoch.

Value

A data frame.

Examples

1
2
3
4
5
file_path <- system.file("extdata", "Hitachi_ETG4000_24Ch_Total.csv", package = "fnirsr")
ETG_header <- load_ETG4000_header(file_path)
rawData <- load_ETG4000_data(file_path, ETG_header)

df_epochs <- epoch_ETG4000(rawData, 1, -100, 100)

erzk/fnirsr documentation built on May 16, 2019, 8:50 a.m.