Description Usage Arguments Value Examples
Caculates the mean every n
points in a given vector. If time
is used, returns the midpoint of the time vector associated with the mean.
1 | blockMeans <- function(X, time, n = 600)
|
X |
A data frame or matrix with columns over which to compute the mean. |
time |
A vector of the class |
n |
The number of rows to compute the mean over. |
The data frame of the means of every n
points.
1 | blockMeans(y[, 28:32], y$Time, n = 1200)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.