Skip to contents

The function label_ana combines raw data and an ANA annotation together to return a labeled dataframe.

Usage

label_ana(data, ana)

Arguments

data

Dataframe containing columns for time and volts

ana

A dataframe for an ANA file.

Value

A tibble object with three rows is returned: time, volts, waveform.

Details

The raw data and ana must be for the same dataset, although the names of the objects do not need to match in any way. The following code number to character title conversion is followed: 1 = non-probing 2 = C 4 = E1 5 = E2 7 = G 8 = pd 9 = pd1 10 = pd2 99 = end If the ANA labels do not come in that exact code matching, then the labeling will be incorrect.

See also

read_epg to read in the raw data and ANA files.