Skip to contents

Check for hapax legomena

Usage

is_hapax(x)

Arguments

x

A vector, such as a column of character strings

Value

A logical vector

See also

Examples

c("cat", "dog", "dog", "bat", "dog") |>
  is_hapax()
#> [1]  TRUE FALSE FALSE  TRUE FALSE