View source: R/assert_type_consistency.R
| assert_type_consistency | R Documentation |
This function checks whether the data types of fields in a dataset match the expected types specified in the metadata. It warns if any fields have a different type than expected.
assert_type_consistency(data, metadata)
data |
A data frame. The dataset containing the fields to validate. |
metadata |
A data frame. Metadata specifying the expected data types for each field.
It must include the columns |
No return value. The function issues warnings if any fields have an unexpected type.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.