grapes-grapes: remainder of division on in-database objects.

Description Usage Arguments Details Value Constraints Examples

Description

%% calculates the remainder of in-database object division.

Usage

1
pObj1 %% pObj2

Arguments

pObj1

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

pObj2

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

Details

The remainder of in-database objects mimics the normal remainder of R data types. All combinations of operands are possible just like in R and the result is an in-database object.

Value

%% returns an in-database object if there is atleast one in-database object as input.Otherwise, the default behavior of R is preserved

Constraints

division by 0 gives inf in R, but is not supported for in-database objects

Examples

1
2
3
flmatrix <- FLMatrix("tblMatrixMulti", 1,"MATRIX_ID","ROW_ID","COL_ID","CELL_VAL")
Rvector <- 1:5
ResultFLmatrix <- flmatrix %% Rvector

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