format_reverse: Reformat Reversed Names

Description Usage Arguments Value See Also Examples

View source: R/RcppExports.R

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

1

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

1
2
# Take a reversed name and un-reverse it
format_reverse("Keyes, Oliver")

humaniformat documentation built on May 2, 2019, 6:42 a.m.