count_row: Return counted number which is matched to the any argument in...

View source: R/algorithm.R

count_rowR Documentation

Return counted number which is matched to the any argument in each row.

Description

Count what in from

Usage

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

Arguments

what

value of sequence for finding

fromMD

index of this argument is returned

condition

condition for finding. Default is "=="

Value

List of count number.

Examples

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

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