| require_column | R Documentation |
Simple check that a single column exists. For checking multiple columns, use validate_dataframe() with required_cols parameter.
require_column(df, col, param_name = deparse(substitute(df)))
df |
Data frame to check |
col |
Column name to require |
param_name |
Name of the data frame parameter (for error message) |
Invisible TRUE if column exists, otherwise stops with error
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.