Learn R Programming

rfml (version 0.1.0)

mean,ml.col.def-method: Mean

Description

Returns the mean of a ml.data.frame field.

Usage

"mean"(x, na.rm = FALSE)

Arguments

x
a ml.data.frame field.
na.rm
not currently used.

Value

The mean

Examples

Run this code
## Not run: 
#  locConn <- ml.connect()
#  # create a ml.data.frame based on a search
#  mlIris <- ml.data.frame(locConn, collection = "iris")
#  # mean
#  mean(mlIris$Sepal.Length)
# ## End(Not run)

Run the code above in your browser using DataLab