sum_matrix: Sum Over Array's Matrices

Description Usage Arguments Value See Also

View source: R/calculate_mean_matrix.R

Description

Sum over specified Array matrices, possibly weighted.

Usage

1
sum_matrix(arr, index, constants, weights = FALSE)

Arguments

arr

array to sum over it's 3rd axis.

index

index of matrices to sum. default is to sum over all matrices.

constants

constants to multiply the matrices before summation. default is 1 for all constants

weights

should treat constants as weights (sum of all constants = 1)? default false

Value

a matrix, built from the (possible weighted) sum of specified matrices

See Also

Other sum_arrays: calculate_mean_matrix(), sum_vector()


itamarfaran/corrpops documentation built on Dec. 20, 2021, 8:02 p.m.