cols_means()
and rows_means()
are simple aliases to
colMeans()
and rowMeans()
. colVars()
uses
colMeans()
to provide an efficient way of computing the
variances of the columns of a matrix while rowVars()
uses
rowMeans()
to provide an efficient way of computing the
variances of the rows of a matrix.
1 2 3 4 5 6 7 | cols_variances(x)
rows_variances(x)
cols_means(x, na.rm = FALSE, dims = 1L)
rows_means(x, na.rm = FALSE, dims = 1L)
|
x |
numeric matrix. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.