powered by
This function does not handle NA values
fast_movavg(data, window_size)
Returns a vector with the moving average
vector
a vector or a column matrix of numeric.
matrix
numeric
moving sd window size
data_avg <- fast_movavg(mp_toy_data$data[, 1], mp_toy_data$sub_len)
Run the code above in your browser using DataLab