Description Usage Arguments Value Examples
View source: R/data_labeling.R
Plug the labels from a set of annotations (made by annotator_app
) in
a dataset of slices (made by slice_wavs
).
1 | label_slices(slices_dir, annotations, pattern = NULL)
|
slices_dir |
atomic character. Path to dir where the slices are (see |
pattern |
atomic character. A regex pattern to select files from 'slices_dir'. Useful to filter out just specifc types of labels (see examples). |
annotations_dir |
atomic character or a tibble. If character, path to dir where the annotations
are. If tibble, a tibble created by |
tibble of slices with label column.
1 2 3 4 5 6 7 | slices_dir <- system.file("wav_sample_slices_1000ms", package = "mestrado")
annotations_dir <- system.file("annotations", package = "mestrado")
slices_1000ms_labels <- label_slices(
slices_dir,
annotations_dir,
pattern = "Glaucidium|Megascops-atricapilla"
)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.