get_gaps: get_gaps function

View source: R/get_gaps.R

get_gapsR Documentation

get_gaps function

Description

Takes a unit table of notes and generates a corresponding unit table for its gaps.

Usage

get_gaps(unit_table)

Arguments

unit_table:

A unit table tibble containing the original sound file, start/end times of the note,the note position and note_label.

Value

A dataframe with the recording, position of gap and the gap duration.

Examples

unit_table = tibble::tibble(start = c(0.37, 0.6, 0.75, 0.2, 1.8, 2.5), end = c(0.45, 0.7, 0.9, 0.4, 2, 3), selec = c(1,2,3,1,2,3),sound.files = c(rep("JS001.wav",3),rep("JS002.wav", 3)), note_label = "Curve")
get_gaps(unit_table)

Anthony-Kwong/birdsong.tools documentation built on April 14, 2023, 9:50 a.m.