note_match: note_match function

Description Usage Arguments Value Examples

View source: R/note_match.R

Description

Takes a table of computationally excised notes and matches it to a table of manually classified notes. Notes are considered matching if the midpoint of the computationally excised note is within the interval of a manually classified note.

Usage

1
note_match(comp_table, manual_table)

Arguments

comp_table:

A tibble of computationally excised notes containing the original sound file, start/end times of the note.

manual_table:

A tibble of manually classified notes containing the original sound file, start/end times of the note and the note class.

Value

A vector of note classes for comp_table. The class is unclassified if no matching note is found.

Examples

1
2
3
comp_table = tibble(start = c(0.35, 0.55), end = c(0.49, 0.7), sound.files = "JS001.wav")
manual_table = tibble(start = c(0.37, 0.6), end = c(0.45, 0.7), sound.files = "JS001.wav", note_label = "Curve")
note_match(comp_table, manual_table)

deponent-verb/birdsong.tools documentation built on Dec. 19, 2021, 10:12 p.m.