compute_oscores_dep2: compute_oscores_dep2 function

Description Usage Arguments Value Examples

View source: R/compute_oscores_dep2.R

Description

Dependency function for compute_oscores. Compares the overlap scores for table1 and table2, using table1 as a reference.

Usage

1
compute_oscores_dep2(table1, table2)

Arguments

table1:

A unit table tibble containing the original sound file, start/end times of the note,the note position and note_label.The soundfile must be the same as table2.

table2:

A unit table tibble containing the original sound file, start/end times of the note,the note position and note_label. The soundfile must be the same as table1.

Value

A numeric vector with the sum of each of the 3 overlaps scores.

Examples

1
2
3
4
5
table1 = tibble::tibble(start = c(0.30, 0.55, 1.5, 2.5), end = c(0.51, 0.7, 2.2, 3), 
sound.files = "JS001.wav", pos =c(1,2,3,4), note_label = "Curve")
table2 = tibble::tibble(start = c(0.4, 0.6, 1.5, 2.7), end = c(0.51, 0.7, 2.2, 3.2), 
sound.files = "JS001.wav", pos =c(1,2,3,4), note_label = "Curve")
compute_oscores_dep2(table1,table2)

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