Description Usage Arguments Details Value Examples
select subset of elan or rttm annotations
1 2 | subset_time(x, from = NULL, to = NULL, include_incomplete = TRUE,
shift_times = FALSE)
|
x |
a data.frame (result from |
from |
numeric, include annotations from this point forward (by default |
to |
numeric, include annotations up to that point (by default |
include_incomplete |
logical, should annotations that cross |
shift_times |
logical, not implemented (yet) |
If you keep annotations that cross the from and/or to boundaries, the durations of those annotations will be updated.
a data.frame
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | rttm <- system.file("yunitator_old_synthetic_speech_overlap.rttm", package = "avutils")
x <- read_rttm(rttm)
# leave unchanged
subset_time(x)
# up to 26
subset_time(x, to = 26)
# remove incomplete anno (25.6 - 26.3)
subset_time(x, to = 26, include_incomplete = FALSE)
elan <- system.file("synthetic_speech_overlap.eaf", package = "avutils")
x <- read_elan(elan)
# leave unchanged
subset_time(x)
# up to 29
subset_time(x, to = 29)
# remove incomplete anno (28.3 - 30.5)
subset_time(x, to = 29, include_incomplete = FALSE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.