check-scalar-hasDuplicates: Does the input have duplicates?

check-scalar-hasDuplicatesR Documentation

Does the input have duplicates?

Description

Does the input have duplicates?

Usage

hasDuplicates(x)

hasNoDuplicates(x)

Arguments

x

Object.

Value

TRUE on success; FALSE on failure, with cause set.

Note

Updated 2023-01-12.

See Also

  • assertive.properties::has_duplicates().

  • assertive.properties::has_no_duplicates().

Examples

## TRUE ====
hasDuplicates(c("a", "a"))
hasNoDuplicates(c("a", "b"))

## FALSE ====
hasDuplicates(c("a", "b"))
hasNoDuplicates(c("a", "a", "b", "b"))

acidgenomics/r-goalie documentation built on Jan. 12, 2024, 4:15 a.m.