Description Arguments Author(s) Examples
View source: R/rm_downsample.R
rm_downsample
downsample a data vector and transform its corresponding time vector
vec |
data vector |
t |
time vector |
f |
factor of downsampling (integer) |
method |
"filter" or "average" (uses time windows of f to average the time course) or "rollmean" (from zoo package) |
pad |
mean padding (defaults to 0) |
Ren攼㸹 Michel
1 | rm_downsample(c(1,-1,3, 4), c(1,2,3,4), 2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.