find_all: Return list of index of from which is matched to the argument

View source: R/algorithm.R

find_allR Documentation

Return list of index of from which is matched to the argument

Description

Return list of index of from which is matched to the argument

Usage

find_all(what, from, condition = `==`)

Arguments

what

value of sequence for finding

from

index of this argument is returned

condition

condition for finding. Default is "=="

Value

List of index which is found in from at each what

Examples

find_all(c(1,3,5), c(0,1,2,3,3))
# list(2,c(4,5),integer(0))

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