Skip to contents

Determine if a column, passed using NSE, exists in a data.frame

Usage

.columnExists(data, col)

Arguments

data

the data.frame to be searched

col

the name of the column to be searched

Value

TRUE if the column exists, FALSE otherwise

Examples

# tibble::tibble(good=1) %>% .columnExists(good) # TRUE
# tibble::tibble(good=1) %>% .columnExists(bad) # FALSE