find_first_row: Return list of first row in fromMD in any of which is matched...

View source: R/algorithm.R

find_first_rowR Documentation

Return list of first 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_first_row(what, fromMD, condition = `==`)

Arguments

what

value of sequence for finding

fromMD

multi-dimensional target.

condition

condition for finding. Default is "=="

Value

List of first row which is found in from at each what. NA if it is not found.

Examples

find_first_row(c(1,3,5), matrix(c(0,0,1,2,0,0,3,0,0,3,4,4),ncol=2,byrow=TRUE))
#' # c(2,4,NA)

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