wave_duration: Calculate the duration for each waveform instance

View source: R/wave_duration.R

wave_durationR Documentation

Calculate the duration for each waveform instance

Description

The function wave_duration calculates the duration for each waveform instance in labeled data.

Usage

wave_duration(data)

Arguments

data

A dataframe containing three columns: time, volts, waveform.

Details

Labeled data is grouped by each waveform instance and the duration is then calculated. The overall feeding duration is displayed in the top row as "Feeding" for simplicity. Duration is reported in seconds.

The waveform type 'pd' without any splitting into subforms is calculated separately. As a result, the pd calculations will appear all at the end of the table. The subforms, pd1 and pd2, will appear in sequence.

Value

A tibble object containing a row per waveform instance and two columns, waveform and duration, is returned.

See Also

Other waveform functions: plot_pie(), plot_wave(), wave_extract(), wave_occurrence(), wave_topfreq(), wave_volts()


LylChun/EPGminer documentation built on Aug. 28, 2023, 12:30 a.m.