unwhich: Unwhich

Description Usage Arguments Value Author(s) Examples

View source: R/unwhich.R

Description

Opposite of which. Convert to numeric index into a logical vector

Usage

1

Arguments

x

a vector of numeric indicies which elements will be marked as TRUE

length

the length of output vector

Value

a logical vector

Author(s)

Mun-Gwan Hong, mungwan@gmail.com

Examples

1
unwhich(c(5, 10), 10)

Rundmus/Useful2me-R_package documentation built on Nov. 13, 2020, 4:16 p.m.