Learn R Programming

evabic (version 0.1.4)

nl2c: Named logical to character

Description

Extracts names of x where x is TRUE

Usage

nl2c(x)

Value

a vector of the same size

Arguments

x

vector

Examples

Run this code
x <- c(a = TRUE, b = FALSE, c = FALSE, d = TRUE)
evabic:::nl2c(x)

Run the code above in your browser using DataLab