Description Usage Arguments Details Value Author(s) See Also Examples
View source: R/linearAlgebra-vec_mean.R
Calculates the mean of a vector. If the input is a matrix, the function vectorizes the matrix before calculating the mean.
1 | vec_mean(x)
|
x |
Numeric vector or |
The vector mean is given by
\frac{1}{n} ≤ft( \mathbf{1}_{n}^{\prime} \mathbf{x} \right)
A vector of length 1.
Ivan Jacob Agaloos Pesigan
Other Vectorization Functions:
diag_of_vech()
,
vechnames()
,
vechsnames()
,
vechs()
,
vech()
,
vec()
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.