Description Usage Arguments Value See Also
View source: R/calculate_mean_matrix.R
Sum over specified matrix rows / columns, possibly weighted. Useful for creating multivariate ARMA processes.
1 | sum_vector(matr, index, constants, weights = FALSE, by_row = TRUE)
|
matr |
matrix to sum over rows / columns |
index |
index of rows / columns to sum. default is to sum over all rows. |
constants |
constants to multiply the indices before summation. default is 1 for all constants |
weights |
should treat constants as weights? if true, weights <- weights/sum(weights). default false |
by_row |
should sum over rows (default) or by columns? |
a vector, built from the (possible weighted) sum of specified vectors
Other sum_arrays:
calculate_mean_matrix()
,
sum_matrix()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.