sd-ml.col.def-method: Standard Deviation

Description Usage Arguments Details Value Examples

Description

Returns the sample standard deviation of a ml.data.frame field.

Usage

1
2
## S4 method for signature 'ml.col.def'
sd(x, na.rm = NULL)

Arguments

x

a ml.data.frame field.

na.rm

not used currently

Details

The function returns a empty value if the number of rows of the ml.data.frame that x belongs to is less than 2.

Value

The sample standard deviation

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
 library(rfml)
 locConn <- ml.connect()
 # create a ml.data.frame based on a search
 mlIris <- ml.data.frame(locConn, collection = "iris")
 # standard deviation
 sd(mlIris$Sepal.Length)

## End(Not run)

mstellwa/rfml documentation built on May 23, 2019, 8:16 a.m.