Get addresses for each author using a look-up function, where addresses are stored internally.
get_affiliation(authors)
A vector of author names. For example,
"John R. Doe"
without first name first. The middle
initial or name is optional. Entries must exactly match
those used in the "data-raw\authors.csv"
file.
If you need additional authors added to this file
please contact the package maintainers or add them to the
.csv
file and run the R script also found in that
folder prior to submitting a pull request. Following this
workflow ensures that the author's address is also added.
A vector the same length as the input author argument is returned, providing the matching address for each entry as a text string.
get_affiliation("Kelli F. Johnson")
#> [1] "Northwest Fisheries Science Center, U.S. Department of Commerce, National Oceanic and Atmospheric Administration, National Marine Fisheries Service, 2725 Montlake Boulevard East, Seattle, Washington 98112"
get_affiliation(c("Kelli F. Johnson", "Chantel R. Wetzel"))
#> [1] "Northwest Fisheries Science Center, U.S. Department of Commerce, National Oceanic and Atmospheric Administration, National Marine Fisheries Service, 2725 Montlake Boulevard East, Seattle, Washington 98112"
#> [2] "Northwest Fisheries Science Center, U.S. Department of Commerce, National Oceanic and Atmospheric Administration, National Marine Fisheries Service, 2725 Montlake Boulevard East, Seattle, Washington 98112"