stopifnotcolumn | R Documentation |
Similar in function to stopifnot but specific to a column name that you wish to double check if it is present in your data or not.
stopifnotcolumn(data, string)
data |
A data frame with column names. |
string |
A character string that you want to know if it exists in
the column names of |
TRUE
is invisibly returned if the column name is found and
an informative stop call is initiated if the column is not present.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.