View source: R/11.0-core-validators.R
| validate_structure_core | R Documentation |
Validates basic data structure requirements like data.frame format, required columns, minimum rows, etc.
validate_structure_core(
data,
data_name,
required_class = NULL,
required_cols = NULL,
min_rows = NULL,
min_cols = NULL,
allow_empty = FALSE
)
data |
Data to validate |
data_name |
Name for error messages |
required_class |
Expected class(es) |
required_cols |
Required column names (for data.frames) |
min_rows |
Minimum number of rows |
min_cols |
Minimum number of columns |
allow_empty |
Whether empty data is allowed |
Validation result
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.