Description Usage Arguments Value Examples
Expand a data set containing onset/offset columns to reflect their frame numbers.
1 | framerate_expand(.data, fps, keep_ts = TRUE)
|
.data |
A |
fps |
The frames per second corresponding to the coded video. |
keep_ts |
Whether to keep the |
A data.table
with the added column frame_number
1 2 3 4 5 | my_data <- data.frame(onset=1000, offset=1999, code="hello")
framerate_expand(my_data, 30)
my_data2 <- data.frame(onset=c(-1, 0), offset=c(100, 125), x=c(".", "-"))
framerate_expand(my_data2, 30)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.