Skip to contents

Throw an exception of the given column DOES exist in the given data.frame

Usage

.assertColumnDoesNotExist(data, col)

Arguments

data

the data.frame to be searched

col

the name of the column to be searched

Value

NULL

Examples

# tibble::tibble(good=1) %>% .assertColumnExists(good) # No exception
# tibble::tibble(good=1) %>% .assertColumnExists(bad) # Exception