maskMatrix: Generating a matrix consisting of 0/1 for filtering values in...

View source: R/struc__maskMatrix.R

maskMatrixR Documentation

Generating a matrix consisting of 0/1 for filtering values in a target matrix.

Description

For example, m <- m * maskMatrix(m, items_to_keep.dataframe, keep.diag = True) will replace unwanted cells with zero.

Usage

maskMatrix(m, df, default = 0, keep.diag = TRUE)

Author(s)

Yu Wan (wanyuac@gmail.com)


wanyuac/handyR documentation built on June 10, 2024, 1:24 a.m.