This function does not handle NA values

fast_avg_sd(data, window_size, rcpp = FALSE)

Arguments

data

a vector or a column matrix of numeric.

window_size

moving sd window size

rcpp

a logical. Uses rcpp implementation.

Value

Returns a list with avg and sd

vectors