Description Usage Arguments Details Value Examples
View source: R/by_trial_operation.R
Pick a new frame as the starting frame, which will become frame 1. You can
use either a single frame number for all trials using value
, or you
can supply a different frame number for each trial using tab
.
1 2 | set_start_frame(tracks, value = NULL, tab = NULL, frame = "frame",
trial = "trial")
|
tracks |
A tracks object. |
value |
A single value to set as the start frame. |
tab |
A data.frame with trial names and start frames. Use |
frame |
The column from |
trial |
The column from |
All values below the start frame will be filtered out.
A tracks object.
1 2 3 4 5 6 7 8 9 | Guppies <- as_tracks(guppies, 30, '1080p')
# Normally this dataset starts from frame 10000:
Guppies$tr
# But we can easily set that to 1 instead:
set_start_frame(Guppies, 10000)$tr
# Or we can use different frame numbers per trial:
frame_table <- data.frame(trial = c('a', 'b'), frame = c(5000, 10000))
set_start_frame(Guppies, tab = frame_table)$tr
# Since some frames were fropper,
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.