View source: R/add_selections.R
add_selections | R Documentation |
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
add_selections(unit_table)
unit_table: |
A data.frame with the columns specified in the description. |
A new unit table with a sel column.
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.