View source: R/findAuthorWorks.r
| findAuthorWorks | R Documentation |
Searches for an author's name in a bibliometric dataframe and returns the DOIs and author positions of their co-authored works.
findAuthorWorks(author_name, data, partial_match = TRUE, exact_match = FALSE)
author_name |
Character. The author's name to search for (case-insensitive) |
data |
Data.frame. The bibliometric dataframe with AU and DI columns |
partial_match |
Logical. If TRUE, allows partial name matching (default: TRUE) |
exact_match |
Logical. If TRUE, requires exact name matching (default: FALSE) |
The function searches through the AU column which contains author names separated by semicolons. It identifies the position of the target author and returns comprehensive information about each matching work.
A data.frame with columns:
doi: DOI of the work
author_position: Numerical position of the author in the author list
total_authors: Total number of authors in the work
all_authors: Complete list of authors for reference
matched_name: The exact name variant that was matched
Your Name
## Not run:
# Find works by "ARIA M"
works <- findAuthorWorks("ARIA M", M)
# Find works with exact matching
works_exact <- findAuthorWorks("PESTANA MH", M, exact_match = TRUE)
# Find works with partial matching disabled
works_full <- findAuthorWorks("MASSIMO ARIA", M, partial_match = FALSE)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.