group_means | R Documentation |
Compute the group-wise mean vectors for a given data matrix.
group_means(Y, X)
Y |
A |
X |
A |
Given a data matrix X
and a factor Y
, this function computes the mean of the rows of X
for each level of Y
.
A matrix of group means, where the number of rows equals the number of groups, and each row is the mean vector for that group.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.