extract: '[' S3 method for 'blockmatrix' object

Description Usage Arguments Value Author(s)

Description

[ S3 method for blockmatrix object

Usage

1
2
## S3 method for class 'blockmatrix'
 M[i = 1:nrow(M), j = 1:ncol(M),numeric_value=TRUE,blockmatrix=FALSE,...]

Arguments

M

a blockmatrix object

i,j

matrix indices (numerical or character)

numeric_value

logical value . If TRUE (Default if i,j have both length 1) and i,j have both length 1, a i,j numeric matrix is returened.

blockmatrix

logical value. If TRUE (Default if i or j have length greater than 1) a blockmatrix is returned.

...

further argument for [ method

Value

The i,j matrix as a numarical matrix if blockmatrix is FALSE, otherwise the returen oblect is a blockmatrix object. In case i is a character vector, the method returns a list of objects with name containing in i and taken from M.

Author(s)

Emanuele Cordano


ecor/blockmatrix documentation built on May 15, 2019, 8:54 p.m.