matrix_idx {matricks}R Documentation

Get available marix indices

Description

Get available marix indices

Usage

matrix_idx(mat, n.row = NULL, n.col = NULL, mask = NULL)

Arguments

mat

matrix

n.row

number of rows; default: NULL

n.col

number of columns; default: NULL

mask

logical matrix; default: NULL

Examples

T <- TRUE; F <- FALSE
mat <- matrix(0, 3, 3)
mask <- m(T, T, F | T, F, T | F, F, T)
# All poss
matrix_idx(mat)
matrix_idx(mat, mask = mask)
matrix_idx(mask = mask)

[Package matricks version 0.8.2 Index]