Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add entry to taxonomic_names vignettes to obtain a more concise list of similar taxa #732

Open
user3386170 opened this issue May 10, 2024 · 1 comment
Labels

Comments

@user3386170
Copy link

I ran around in circles yesterday trying to figure out how to pull out a list of the usageKey associated with my list of taxa that would include homotypic synonyms but not species with similar names. I finally figured out that adding a filter with matchTYPE=='EXACT' acheived what I needed. If I did not make an error in my method, I suggest adding the following information to the vignette (which I had initially followed and found generally useful) under Too many choices problem after lines 114. I expect my terminology isn't completely accurate but shows that jist of what I think might be helpful to users like me.

For species that have similar names to other species, verbose=TRUE will return multiple taxa that are different species than the initial query. For example, Lobelia kalmii with verbose=TRUE will return two entries for that species as well as an entry for Lobelia halei.

name_backbone("Lobelia kalmii",verbose=TRUE)
#Lobelia kalmii L.
#Lobelia kalmii Bart.
#Lobelia halei Small

Retreiving only the target species with the same name while accepting different authorship can be acheived with a filter on matchType=='EXACT'.

name_backbone("Lobelia kalmii",verbose=TRUE)%>%filter(matchType=='EXACT')
#Lobelia kalmii L.
#Lobelia kalmii Bart.
Session Info
@jhnwllr
Copy link
Collaborator

jhnwllr commented May 13, 2024

Hello @user3386170 thanks for the suggestion. I will add it to the new version.

@jhnwllr jhnwllr added this to the 3.8.0 milestone May 13, 2024
@jhnwllr jhnwllr added the docs label May 13, 2024
@jhnwllr jhnwllr removed this from the 3.8.0 milestone May 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants