rowMeans.ca: Improved function for computation of row means (row-wise...

View source: R/row-wise-computations-functions.R

rowMeans.caR Documentation

Improved function for computation of row means (row-wise means).

Description

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.

Usage

rowMeans.ca(df,c("degC.W1","degC.W2"))

Arguments

df

data frame

vec

names of rows to be averaged

Value

string vector

Author(s)

Claus E. Andersen


claus-e-andersen/clanTools documentation built on Nov. 30, 2024, 11:06 p.m.