Skip to contents

Is it a common US surname (last name)?

Usage

is_last_name(x)

Arguments

x

A character vector.

Value

Logical vector; TRUE for a single token matching the internal Census surname list (.last_names), case- and punctuation-insensitive.

See also

Other person detectors: is_first_name(), is_full_name()

Examples

is_last_name(c("Smith", "garcia", "Xqzzy", NA))
#> [1]  TRUE  TRUE FALSE    NA