sub-.FLMatrix: Extract part of FLMatrix object.

Description Usage Arguments Value Constraints Examples

Description

[] acts on FLMatrix objects and extracts parts of them.

Usage

1
2
## S3 method for class 'FLMatrix'
object[rows = 1, cols = 1, drop = TRUE]

Arguments

object

is a FLMatrix object

rows

is a vector input corresponding to rows to be extracted

cols

is a vector input corresponding to columns to be extracted

drop

logical if dimnames to be dropped

Value

[] returns FLMatrix object after extraction which replicates the equivalent R extraction.

Constraints

Applying UDT functions on subsetted matrices with discontinuous row and col ids' may result in error

Examples

1
2
flmatrix <- FLMatrix("tblMatrixMulti", 2,"MATRIX_ID","ROW_ID","COL_ID","CELL_VAL")
resultFLmatrix <- flmatrix[1,]

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