R/Unwhich.R

Defines functions unwhich

# Unwhich

unwhich <- function(x, n) {
  out <- rep_len(FALSE, n)
  out[x] <- TRUE
  out
}
gfalbery/ggregplot documentation built on Feb. 4, 2025, 3:17 a.m.