Learn R Programming

hutilscpp (version 0.10.10)

whichs: Separated which

Description

Same as which(exprA) where exprA is a binary expression.

Usage

whichs(
  exprA,
  .env = parent.frame(),
  nThread = getOption("hutilscpp.nThread", 1L)
)

Value

Integer vector, the indices of exprA that return TRUE.

Arguments

exprA

An expression. Useful when of the form a <op> b for a an atomic vector. Long expressions are not supported.

.env

The environment in which exprA is to be evaluated.

nThread

Number of threads to use.