unwhich: Convert integer to boolean representation.

Description Usage Arguments Value Examples

View source: R/hadley.R

Description

Convert integer to boolean representation.

Usage

1
unwhich(x, n)

Arguments

x

A vector to which matches and missmatches to represent as TRUE and FALSE.

n

The length of the bolean representation.

Value

A boolean representation of length n.

Examples

1
2
3
x <- sample(10) < 4
which(x)
unwhich(which(x), 10)

maurolepore/handy documentation built on May 21, 2019, 1:37 p.m.