Description Usage Arguments See Also Examples
as in the lubridate package, individual components of a name can be both extracted or set using the relevant function call - see the examples.
1 2 3 | middle_name(x)
middle_name(x) <- value
|
x |
a name, or vector of names |
value |
a replacement value for x's middle name. |
salutation
, first_name
, last_name
and suffix
for other accessors.
1 2 3 4 5 6 | #Get a middle name
example_name <- "Mr Jim Toby Jeffries"
middle_name(example_name)
#Set a middle name
middle_name(example_name) <- "Richard"
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.