global_onsets.sampling_frame | R Documentation |
This function computes the global onsets (with respect to the first block) for a given sampling_frame
.
## S3 method for class 'sampling_frame'
global_onsets(x, onsets, blockids, ...)
x |
A sampling_frame object. |
onsets |
A numeric vector of onsets within the specified blocks. |
blockids |
A numeric vector of block IDs corresponding to the onsets. |
... |
Additional arguments (currently unused). |
A numeric vector of global onsets computed from the specified sampling_frame
.
frame <- sampling_frame(blocklens = c(100, 100, 100), TR = 2, precision = 0.5)
onsets <- c(10, 20, 30)
blockids <- c(1, 2, 3)
global_onsets(frame, onsets, blockids)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.