format_reverse {humaniformat} | R Documentation |
Reformat Reversed Names
Description
a common pattern for names is 'Lastname Suffix, Salutation Firstname' -
or to put that more practically, 'Jeffries PhD, Mr Bernard'. format_reverse
takes these reversed names and reformats them to a form that parse_names
can handle.
Usage
format_reverse(names)
Arguments
names |
a vector of names following this convention. Names that lack commas will be returned entirely intact, so assuming you don't have (legitimate) commas in names not following this format, there's no need to worry if your vector has mixed formatting. |
Value
a vector containing the reformatted names
See Also
parse_names
, which works more reliably if reversed names have
been reformatted, and format_period
for period-separated names.
Examples
# Take a reversed name and un-reverse it
format_reverse("Keyes, Oliver")
[Package humaniformat version 0.6.0 Index]