format_period: Reformat Period-Separated Names

Description Usage Arguments See Also Examples


a common pattern for names is for first and middle names to be represented by initials. Unfortunately depending on how this is done, that can make things problematic; "G. K. Chesterton" is easy to parse, but "G.K. Chesterton" or "G.K.Chesterton" is not. format_period takes names that are period-separated in this fashion and reformats them to ensure there are spaces between each initial. Periods after any space in the name are preserved, so "G.K. Chesterton, M.D." does not become "G. K. Chesterton, M. D. ".





a vector of names following this convention. Names that lack periods will be returned entirely intact, so assuming you don't have (legitimate) periods in names not following this format, there's no need to worry if your vector has mixed formatting.

See Also

format_reverse for names stored as "Lastname, Firstname", and parse_names to parse the output of this function.



Search within the humaniformat package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.