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

get_tsn addition: "no match" #48

Closed
sckott opened this issue Oct 26, 2012 · 5 comments
Closed

get_tsn addition: "no match" #48

sckott opened this issue Oct 26, 2012 · 5 comments

Comments

@sckott
Copy link
Contributor

sckott commented Oct 26, 2012

When using get_tsn, sometimes the given options don't match your input. Perhaps you can add an option that is "none of the above", which will just insert a character string e.g, "no_match", so that you can continue on in case you are calling get_tsn in an apply call or for loop.

@ghost ghost assigned eduardszoecs Oct 26, 2012
@eduardszoecs
Copy link
Member

Do you have an example? - I'm not sure if I understand you right...

@sckott
Copy link
Contributor Author

sckott commented Oct 27, 2012

For example:

get_tsn("Dialictus", "sciname")

gives

Retrieving data for species ' Dialictus '


            combinedname    tsn
1        Glossodialictus 634134
2 Glossodialictus wittei 757658
3     Dialictus flavipes 760402

More than one TSN found for species ' Dialictus '!

          Enter rowname of species to take:

Dialictus is a subgenus now of Lasioglossum, so this may be a weird example, but I think this has happened in other cases. So in this case I would want to select option No. 4, which is "none of the above", cause if this was in a lapply type call, then I would have to start over if none of the options matched what I wanted.

@eduardszoecs
Copy link
Member

Should be no problem, but I am currently quite busy :(

@sckott
Copy link
Contributor Author

sckott commented Nov 28, 2012

Thanks.

eduardszoecs pushed a commit that referenced this issue Nov 29, 2012
@eduardszoecs
Copy link
Member

Commit cd43105 should fix this. If the User is asked for input, he/she can select the rownumber corresponding to the proper species. Any input diverging from the rownames will be treated as 'NA'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants