equals: Equality of in-database objects.

Description Usage Arguments Details Value Constraints Examples

Description

== checks the equality of in-database objects.

Usage

1
"=="(pObj1, pObj2)

Arguments

pObj1

can be an in-database object like FLMatrix,FLVector or a normal R object like matrix,sparseMatrix,vector

pObj2

can be an in-database object like FLMatrix,FLVector or a normal R object like matrix,sparseMatrix,vector

Details

The equality of in-database objects mimics the normal addition of R data types. One can check equality of FLMatrices, FLMatrix - R matrices, FLVectors and FLVector - RVector.

Value

== returns a logical TRUE or FALSE matrix similar to R output

Constraints

Currently only dgCMatrix,dgeMatrix,dsCMatrix, dgTMatrix,matrix,Matrix,vector R types are supported. Comparision of FLMatrix with FLVector is not currently Supported. In case of FLVector and Rvector comparision use FLVector==RVector in place of RVector==FLVector

Examples

1
2
3
4
5
6
connection <- flConnect(odbcSource="Gandalf")
flmatrix <- FLMatrix("FL_DEMO.tblMatrixMulti", 5,"MATRIX_ID","ROW_ID","COL_ID","CELL_VAL")
flvector <- as.FLVector(1:5)
Result <- flmatrix == flmatrix
Result <- flvector==flvector
Result <- flvector==1:5

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