Check if two author strings have the same first author.

same_first_author(authors_str1, authors_str2)

Arguments

authors_str1

Character vector containing first authors list

authors_str2

Character vector containing second authors list

Value

Logical whether first authors are the same

Details

Last names of the first authors are compared. If these match then first names are checked and TRUE is returned if either the whole first name or first initial matches. If first and last names cannot be separated the whole author names are compared. Some simplification of characters in names is performed to improve matches.