.stopIfColExists | R Documentation |
Warn if a column already exists in a data.frame
.stopIfColExists(df, new_col)
df |
A data.frame or tibble |
new_col |
character(n) Name of a column(s) to add to df |
Returns TRUE invisibly if "new_col" is not already in df. Otherwise, raises an error and prompts the user to supply a different value.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.