suffix: Get or set a name's suffix

Description

as in the lubridate package, individual components of a name can be both extracted or set using the relevant function call - see the examples.

Usage

1
2
3
suffix(x)

suffix(x) <- value

Arguments

x

a name, or vector of names

value

a replacement value for x's suffix.

See Also

salutation, first_name, middle_name and last_name for other accessors.

Examples

1
2
3
4
5
6
#Get a suffix]
example_name <- "Mr Jim Toby Jeffries Esq"
suffix(example_name)

#Set a suffix
suffix(example_name) <- "PhD"

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

All documentation is copyright its authors; we didn't write any of that.