cap: Rounding of Numbers

Description Usage Arguments Details Value Examples

Description

Scalar function which caps an input value at a ceiling or upper boundary.

Usage

1
cap(x, ub)

Arguments

x

can be an in-database object like FLMatrix,FLVector,FLTable or a normal R object

ub

value at which x is to be capped

Details

cap takes a single numeric argument x and returns a numeric vector containing the smallest integers not less than the corresponding elements of x.

Value

cap returns an object of same class as input

Examples

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

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