validateNoDuplicate: validateNoDuplicate

View source: R/error-checks.R

validateNoDuplicateR Documentation

validateNoDuplicate

Description

Leverage 'ospsuite.utils::validateHasOnlyDistinctValues()' to validate that a vector has only distinct values and display a useful message.

Usage

validateNoDuplicate(
  values,
  variableName = NULL,
  na.rm = TRUE,
  nullAllowed = FALSE
)

Arguments

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


Open-Systems-Pharmacology/OSPSuite.ReportingEngine documentation built on May 1, 2024, 12:27 p.m.