middle_name {humaniformat} | R Documentation |
Get or set a name's middle name
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
middle_name(x)
middle_name(x) <- value
Arguments
x |
a name, or vector of names |
value |
a replacement value for x's middle name. |
See Also
salutation
, first_name
, last_name
and suffix
for other accessors.
Examples
#Get a middle name
example_name <- "Mr Jim Toby Jeffries"
middle_name(example_name)
#Set a middle name
middle_name(example_name) <- "Richard"
[Package humaniformat version 0.6.0 Index]