Generic accessor for converting block-wise onsets to global onsets.
Usage
global_onsets(x, ...)
# S3 method for class 'sampling_frame'
global_onsets(x, onsets, blockids, ...)Examples
# Convert block-relative onsets to global timing
sframe <- sampling_frame(blocklens = c(100, 120), TR = 2)
global_onsets(sframe, onsets = c(10, 20), blockids = c(1, 2))
#> [1] 10 220