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"))

steinbaugh/goalie documentation built on Jan. 17, 2024, 5:16 p.m.