has_col | R Documentation |
Detect if df has col
has_col(df, col)
df |
A dataframe. |
col |
A string or string vector. |
A dataframe.
colnames(mtcars)
has_col(mtcars, c("mpg", "cyl"))
has_col(mtcars, c("mpg", "foo"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.