find_unique_row: Return list of unique row in fromMD in any of which is...

View source: R/algorithm.R

find_unique_rowR Documentation

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

Arguments

what

value of sequence for finding

fromMD

multi-dimensional target.

condition

condition for finding. Default is "=="

Value

List of unique row which is found in from at each what. NA if it is not found, or multiple index are found.

Examples

find_unique_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,NA,NA)

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