Description Usage Arguments Details Value Examples
Scalar function which caps an input value at a ceiling or upper boundary.
1 | cap(x, ub)
|
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 |
cap
takes a single numeric argument x and returns
a numeric vector containing the smallest integers not
less than the corresponding elements of x.
cap
returns an object of same class as input
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.