Skip to content

Instantly share code, notes, and snippets.

@dwinter
Created March 15, 2016 20:39
Show Gist options
  • Save dwinter/dd7298f5bdbe5fe8aff5 to your computer and use it in GitHub Desktop.
Save dwinter/dd7298f5bdbe5fe8aff5 to your computer and use it in GitHub Desktop.
```r
library(rotl)
tnrs_match_names("Laminaria saccharina")
```
```
search_string unique_name approximate_match ott_id is_synonym
1 laminaria saccharina Saccharina latissima FALSE 690474 TRUE
is_deprecated number_matches
1 FALSE 1
```
source taxonomies...
```r
taxonomy_taxon(taxon_search$ott_id[1])[[1]]$tax_sources
```
```
[[1]]
[1] "ncbi:309358"
[[2]]
[1] "worms:234483"
[[3]]
[1] "gbif:5422401"
[[4]]
[1] "gbif:5422458"
[[5]]
[1] "gbif:3195824"
[[6]]
[1] "gbif:4377207"
[[7]]
[1] "irmng:10933616"
[[8]]
[1] "irmng:10009757"
[[9]]
[1] "irmng:11178655"
[[10]]
[1] "irmng:10967800"
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment