mean.data.frame: Computes the mean of all the values inside a dataframe

Description Usage Arguments Value Author(s)

Description

Sometimes the standard mean() function works on matrices, but it does not on dataframes. In case the parameter is a dataframe, the mean will be computed as the sum of all the values divided by the count of elements. Else another standard mean will be called.

Usage

1
2
## S3 method for class 'data.frame'
mean(x, ...)

Arguments

x

the dataframe

...

additional parameters are quietly ignored

Value

a double value

Author(s)

Samuel Thiriot <samuel.thiriot@res-ear.ch>


samthiriot/gosp.dpp documentation built on May 18, 2019, 3:44 p.m.