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/goalie documentation built on Dec. 11, 2023, 11:36 p.m.