find_all_row: Return list of row in fromMD in any of which is matched to...

View source: R/algorithm.R

find_all_rowR Documentation

Return list of row in fromMD in any of which is matched to what.

Description

Return list of row in fromMD in any of which is matched to what.

Usage

find_all_row(what, fromMD, condition = `==`)

Arguments

what

value of sequence for finding

fromMD

multi-dimensional target.

condition

condition for finding. Default is "=="

Value

List of row which is found in from at each what

Examples

find_all_row(c(1,3,5), matrix(c(0,0,1,2,0,0,3,0,0,3,4,4),ncol=2,byrow=TRUE))
# list(2,c(4,5),integer(0))

hmito/hmRLib documentation built on March 13, 2024, 9:41 p.m.