View source: R/assert_missing_values.R
| assert_missing_values | R Documentation |
This function checks whether the percentage of missing values in a dataset matches the documented percentage in a metadata reference. It warns if there are significant discrepancies.
assert_missing_values(data, metadata)
data |
A data frame. The dataset to check for missing values. |
metadata |
A data frame. Metadata containing expected missing value percentages and valid value counts.
It must include the columns |
No return value. The function issues warnings if the actual missing value percentages deviate significantly from the documented values.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.