get_unique_references.Rd
When multiple references (formatted as e.g. Dawkins (2008)
) have an identical author (or authors) and publication year, it is common practice to include a lowercase letter after the year. This function does this for a vector containing multiple references.
get_unique_references(x)
a character vector with multiple strings/references
a character vector
refs <- c("Dawkins (2008)", "Dawkins (2008)", "Stephenson (2008)")
BioMathR::get_unique_references(refs)
#> [1] "Dawkins (2008a)" "Dawkins (2008b)" "Stephenson (2008)"