Extracts names of x where x is TRUE

nl2c(x)

Arguments

x

vector

Value

a vector of the same size

Examples

x <- c(a = TRUE, b = FALSE, c = FALSE, d = TRUE)
evabic:::nl2c(x)
#> [1] "a" "d"