has_col {pivotea} | R Documentation |
Detect if df has col
Description
Detect if df has col
Usage
has_col(df, col)
Arguments
df |
A dataframe. |
col |
A string or string vector. |
Value
A dataframe.
Examples
colnames(mtcars)
has_col(mtcars, c("mpg", "cyl"))
has_col(mtcars, c("mpg", "foo"))
[Package pivotea version 1.0.2 Index]