identical: Equality of in-database objects.

Description Usage Arguments Details Value Constraints Examples

Description

identical checks the equality of in-database objects.

Usage

1
identical(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

identical returns a logical TRUE or FALSE.

Constraints

Currently only dgCMatrix,dgeMatrix,dsCMatrix, dgTMatrix,matrix,Matrix,vector R types are supported.

Examples

1
2
3
4
flmatrix <- FLMatrix("tblMatrixMulti", 5,"MATRIX_ID","ROW_ID","COL_ID","CELL_VAL")
Rvector <- 1:5
Result <- identical(flmatrix,flmatrix)
Result <- identical(Rvector,as.FLVector(Rvector,connection))

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