Description Usage Arguments Value Examples
Inverts a surname name to name surname (or vice versa)
1 2 | invert_name(name, sep = " ", position = 1, to_title = FALSE,
out_sep = " ")
|
name |
The name to invert. |
sep |
The separator of the name. |
position |
Integer separating the given name from the last name. |
to_title |
Should the result be converted to title? (John Doe instead of john doe) |
out_sep |
The separator for the output. |
A string with the surname and name inverted
1 2 3 4 5 6 | name <- "RODRIGUES BRUNO"
invert_name(name)
invert_name(name, to_title = TRUE)
invert_name("Bruno.Rodrigues", sep = "\\.")
invert_name("Bruno.Rodrigues", sep = "\\.", out_sep = " ")
invert_name("John Middlename Doe", sep = " ", position = 2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.