clean_author_list: Reformat list of authors into Bibliography format

View source: R/clean_author_list.R

clean_author_listR Documentation

Reformat list of authors into Bibliography format

Description

Reformats from typical list of full names (First middle Last,...) to standard bibliographic format (Last FM, ...). Strips out numbers. Will not work for some double and/or hyphenated names or other edge cases which will still have to be cleaned manually.

Usage

clean_author_list(string_authors)

Arguments

string_authors

A text list of authors

Value

String of reformatted names

Examples

authors <- "Desmaré van Rooyen1,2, Sascha Bandulik3, Chandan Kumar-Sinha4,5, 
  Aaron M. Udager4,5,6, Chaelin Lee2, Heather Wachtel7, Debbie L. Cohen8, 
  James M. Luther9, Thomas Giordano6, Adina Turcu2, Richard Warth3, 
  William E. Rainey1,2 and Juilee Rege*1"
clean_author_list(authors)
auth <- "B. Ilkin Safa1, Jared Oakes1, Leslie Kirk1, Eric Olson1, 
Christian M. Warren1, Erin M. Wilfong1, Matthew T. Stier1, Samuel S. Bailin1,
 Curtis Gabriel1, Jeffrey C. Rathmell1, C. Robb Flynn1, J. Matthew Luther1, 
 John R. Koethe1,2, Spyros A. Kalams1, Celestine N. Wanjalla1, Mona Mashayekhi1"
clean_author_list(auth) 

JMLuther/tabletools documentation built on April 14, 2025, 3:09 a.m.