cov-ml.col.def-ml.col.def-method: Covariance

Description Usage Arguments Details Value Examples

Description

Returns the sample covariance of two variables, ml.data.frame fields.

Usage

1
2
3
## S4 method for signature 'ml.col.def,ml.col.def'
cov(x, y = NULL, use = NULL,
  method = NULL)

Arguments

x

a ml.data.frame field.

y

a ml.data.frame field

use

not implemented

method

not implemented

Details

The function eliminates all pairs for which either the first element or the second element is empty. After the elimination, if the length of the input is less than 2, the function returns the empty sequence.

Value

The sample covariance

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")
 # return the Covariance
 cov(mlIris$Sepal.Length, mlIris$Petal.Length)

## End(Not run)

rfml documentation built on May 2, 2019, 3:01 a.m.