Description Usage Arguments Details Value
Checks the names and order of columns in data.
1 2 3 4 5 6 7 | check_cols(
data,
colnames = NULL,
exclusive = FALSE,
ordered = FALSE,
data_name = substitute(data)
)
|
data |
The data frame to check. |
colnames |
A character vector of the column names. |
exclusive |
A flag indicating whether data can include additional columns. |
ordered |
A flag indicating whether the order of the columns has to match. |
data_name |
A string of the name of data. |
By default (colnames = NULL
) data must include at least one column.
To check for no columns set colnames = character(0)
.
Throws an informative error or returns an invisible copy of the data.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.