Description Usage Arguments Examples
Check whether columns of a data frame match are of a certain class and return an informative warning otherwise.
1 | expect_class(data, class_mapping, must_check_all)
|
data |
A data frame to check. |
class_mapping |
A data frame that contains two columns: name and class, whereas the values in name indicate the name of a column to check, class indicates the target class of the column. |
must_check_all |
Whether or not all columns need to be checked in order to avoid a warning. |
1 2 3 4 5 6 7 8 9 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.