View source: R/row-wise-computations-functions.R
rowMeans.ca | R Documentation |
The R base function rowMeans does not work if there is only one column! This function mitigates that problem. vec is a vector of column names in df such as, e.g. c("degC.W1","degC.W2"). See also get.selected.data and get.selected.data.sd.
rowMeans.ca(df,c("degC.W1","degC.W2"))
df |
data frame |
vec |
names of rows to be averaged |
string vector
Claus E. Andersen
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.