gaps | R Documentation |
gaps
measures gap duration
gaps(X = NULL, by = "sound.files", parallel = 1, pb = TRUE)
X |
'selection_table', 'extended_selection_table' (created 'by.song') or data frame with the following columns: 1) "sound.files": name of the sound files, 2) "selec": number of the selections, 3) "start": start time of selections, 4) "end": end time of selections. |
by |
Character vector with column names. Controls the levels at which gaps will be measured. "sound.files" must always be included. |
parallel |
Numeric. Controls whether parallel computing is applied. It specifies the number of cores to be used. Default is 1 (i.e. no parallel computing). |
pb |
Logical argument to control progress bar and messages. Default is |
The function measures the time intervals (i.e. gaps) between selections. The gap for a given selection is calculated as the time interval to the selection immediately after. Hence, there is no gap for the last selection in a sound file (or level determined by the 'by' argument). Gap is set to 0 when selections overlap in time. Note that the sound files are not required.
A data frame identical to that supplied in 'X', with and additional column ('gaps') with the duration of the time interval between selections.
Marcelo Araya-Salas (marcelo.araya@ucr.ac.cr)
Araya-Salas, M., & Smith-Vidaurre, G. (2017). warbleR: An R package to streamline analysis of animal acoustic signals. Methods in Ecology and Evolution, 8(2), 184-191.
inflections
, song_analysis
,
{
# get warbleR sound file examples
data(list = "lbh_selec_table")
# get gaps
gaps(X = lbh_selec_table)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.