cor: Correlation.

Description Usage Arguments Value Constraints Examples

Description

cor computes correlation of in-database Objects

Usage

1
cor(x, y = NULL, use = "everything", method = "pearson", ...)

Arguments

x

FLMatrix, FLVector or FLTable object or any R object

y

FLMatrix, FLVector or FLTable object or any R object

...

any additional arguments

Value

cor returns FLMatrix object representing correlation of x and y.

Constraints

The number of non-null pairs must be greater than or equal to 2. If number of non-null pairs is less than 2, FLCorrel returns a NULL. Only methods c("pearson","spearman","shuffle") are supported.

Examples

1
2
3
4
5
deeptable <- FLTable( 
"tblUSArrests", "ObsID","VarID","Num_Val")
widetable <- FLTable("tblAbaloneWide","ObsID")
cor(deeptable,deeptable)
cor(widetable,widetable)

Fuzzy-Logix/AdapteR documentation built on May 6, 2019, 5:07 p.m.