add_selections: add_selections function

Description Usage Arguments Value Examples

View source: R/add_selections.R

Description

Takes a unit table a adds a new column called "sel", indicating the number of the selected note in each song. (The k^th note would have sel k). Input unit table must have columns: 1) "sound.files": name of the .wav files, 2) "sel": number of the selections, 3) "start": start time of selections, 4) "end": end time of selections

Usage

1
add_selections(unit_table)

Arguments

unit_table:

A data.frame with the columns specified in the description.

Value

A new unit table with a sel column.

Examples

1
2
3
unit_table = tibble::tibble(sound.files = c( rep("JS001.wav",3), rep("JS002.wav",3)),
start = seq(from = 1, to = 3.5, by = 0.5),
end = seq(from = 1, to = 3.5, by = 0.5) + 0.5)

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