| last_name {humaniformat} | R Documentation |
as in the lubridate package, individual components of a name can be both extracted or set using the relevant function call - see the examples.
last_name(x) last_name(x) <- value
x |
a name, or vector of names |
value |
a replacement value for x's last name. |
salutation, first_name, middle_name
and suffix for other accessors.
#Get a last name example_name <- "Mr Jim Toby Jeffries" last_name(example_name) #Set a last name last_name(example_name) <- "Smith"