Description Usage Arguments Value Examples
View source: R/check-cols-complete.R
Check for complete columns in the data and fail (or warn) if incomplete. Missing columns that are required to be complete are ignored.
1 2 3 4 5 6 7 8 | check_cols_complete(
data,
required_cols,
empty_values = c(NA, ""),
strict = TRUE,
success_msg = "Required columns present are complete",
fail_msg = "Some required columns are not complete"
)
|
data |
Data to check |
required_cols |
A character vector of the required columns to check for completeness. |
empty_values |
Values that are considered empty. Defaults to |
strict |
If |
success_msg |
Message indicating the check succeeded. |
fail_msg |
Message indicating the check failed. |
A condition object indicating whether the data contains columns that are not complete.
1 2 | dat <- data.frame(specimenID = c("x", "y"), organ = c(NA, NA))
check_cols_complete(dat, c("specimenID", "organ"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.