validateNoDuplicate | R Documentation |
Leverage 'ospsuite.utils::validateHasOnlyDistinctValues()' to validate that a vector has only distinct values and display a useful message.
validateNoDuplicate(
values,
variableName = NULL,
na.rm = TRUE,
nullAllowed = FALSE
)
values |
An array to validate |
variableName |
Name of variable that can be used to display a useful message |
na.rm |
logical indicating if 'NA' values should be removed before the check |
nullAllowed |
logical indicating if 'NULL' values should be allowed |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.