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

Description Usage Arguments Value Author(s)

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

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

1
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 Oct. 23, 2020, 7:59 a.m.