Learn R Programming

⚠️There's a newer version (1.0.0) of this package.Take me there.

ritis

Installation

Stable, CRAN version

install.packages("ritis")

Dev version

devtools::install_github("ropensci/ritis")
library("ritis")

Solr service

matches only monomials

itis_search(q = "nameWOInd:/[A-Za-z0-9]*[%20]{0,0}*/")
#> # A tibble: 10 × 27
#>      tsn          nameWInd         nameWOInd             unit1   usage
#>    <chr>             <chr>             <chr>             <chr>   <chr>
#> 1     51     Schizomycetes     Schizomycetes     Schizomycetes invalid
#> 2     50          Bacteria          Bacteria          Bacteria   valid
#> 3     52     Archangiaceae     Archangiaceae     Archangiaceae invalid
#> 4     53   Pseudomonadales   Pseudomonadales   Pseudomonadales   valid
#> 5     54 Rhodobacteriineae Rhodobacteriineae Rhodobacteriineae invalid
#> 6     55  Pseudomonadineae  Pseudomonadineae  Pseudomonadineae invalid
#> 7     56  Nitrobacteraceae  Nitrobacteraceae  Nitrobacteraceae invalid
#> 8     57       Nitrobacter       Nitrobacter       Nitrobacter   valid
#> 9     65      Nitrosomonas      Nitrosomonas      Nitrosomonas   valid
#> 10    70  Thiobacteriaceae  Thiobacteriaceae  Thiobacteriaceae invalid
#> # ... with 22 more variables: unacceptReason <chr>,
#> #   credibilityRating <chr>, completenessRating <chr>,
#> #   currencyRating <chr>, kingdom <chr>, rankID <chr>, rank <chr>,
#> #   hierarchySoFar <chr>, hierarchySoFarWRanks <chr>, hierarchyTSN <chr>,
#> #   synonyms <chr>, synonymTSNs <chr>, otherSource <chr>,
#> #   acceptedTSN <chr>, comment <chr>, createDate <chr>, updateDate <chr>,
#> #   `_version_` <dbl>, taxonAuthor <chr>, vernacular <chr>,
#> #   hierarchicalSort <chr>, parentTSN <chr>

matches only binomials

itis_search(q = "nameWOInd:/[A-Za-z0-9]*[%20]{1,1}[A-Za-z0-9]*/")
#> # A tibble: 10 × 25
#>      tsn                  nameWInd                 nameWOInd        unit1
#>    <chr>                     <chr>                     <chr>        <chr>
#> 1     58        Nitrobacter agilis        Nitrobacter agilis  Nitrobacter
#> 2     59        Nitrobacter flavus        Nitrobacter flavus  Nitrobacter
#> 3     60  Nitrobacter oligotrophis  Nitrobacter oligotrophis  Nitrobacter
#> 4     61   Nitrobacter polytrophus   Nitrobacter polytrophus  Nitrobacter
#> 5     62      Nitrobacter punctata      Nitrobacter punctata  Nitrobacter
#> 6     64  Nitrobacter winogradskyi  Nitrobacter winogradskyi  Nitrobacter
#> 7     66     Nitrosomonas europaea     Nitrosomonas europaea Nitrosomonas
#> 8     67 Nitrosomonas groningensis Nitrosomonas groningensis Nitrosomonas
#> 9     68   Nitrosomonas javenensis   Nitrosomonas javenensis Nitrosomonas
#> 10    69    Nitrosomonas monocella    Nitrosomonas monocella Nitrosomonas
#> # ... with 21 more variables: unit2 <chr>, usage <chr>,
#> #   unacceptReason <chr>, credibilityRating <chr>, kingdom <chr>,
#> #   rankID <chr>, rank <chr>, hierarchySoFar <chr>,
#> #   hierarchySoFarWRanks <chr>, hierarchyTSN <chr>, synonyms <chr>,
#> #   synonymTSNs <chr>, otherSource <chr>, acceptedTSN <chr>,
#> #   comment <chr>, createDate <chr>, updateDate <chr>, `_version_` <dbl>,
#> #   taxonAuthor <chr>, parentTSN <chr>, hierarchicalSort <chr>

REST API

Get accepted names for a TSN

accepted_names(tsn = 504239)
#> # A tibble: 1 × 3
#>          acceptedName acceptedTsn     author
#>                 <chr>       <chr>      <chr>
#> 1 Dasiphora fruticosa      836659 (L.) Rydb.

Get common names for a TSN

common_names(tsn = 183833)
#> # A tibble: 3 × 3
#>            commonName language    tsn
#>                 <chr>    <chr>  <chr>
#> 1 African hunting dog  English 183833
#> 2    African Wild Dog  English 183833
#> 3 Painted Hunting Dog  English 183833

Full hierarchy for a TSN

hierarchy_full(tsn = 37906)
#> # A tibble: 60 × 5
#>         parentname parenttsn      rankname       taxonname    tsn
#> *            <chr>     <chr>         <chr>           <chr>  <chr>
#> 1                                  Kingdom         Plantae 202422
#> 2          Plantae    202422    Subkingdom   Viridiplantae 954898
#> 3    Viridiplantae    954898  Infrakingdom    Streptophyta 846494
#> 4     Streptophyta    846494 Superdivision     Embryophyta 954900
#> 5      Embryophyta    954900      Division    Tracheophyta 846496
#> 6     Tracheophyta    846496   Subdivision Spermatophytina 846504
#> 7  Spermatophytina    846504         Class   Magnoliopsida  18063
#> 8    Magnoliopsida     18063    Superorder       Asteranae 846535
#> 9        Asteranae    846535         Order       Asterales  35419
#> 10       Asterales     35419        Family      Asteraceae  35420
#> # ... with 50 more rows

Meta

  • Please report any issues or bugs.
  • License: MIT
  • Get citation information for ritis in R doing citation(package = 'ritis')
  • Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.

Copy Link

Version

Install

install.packages('ritis')

Monthly Downloads

4,214

Version

0.5.4

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Scott Chamberlain

Last Published

October 13th, 2016

Functions in ritis (0.5.4)

comment_detail

Get comment detail from TSN
coverage

Get coverge from tsn
core_metadata

Get core metadata from tsn
date_data

Get date data from tsn
currency

Get currency from tsn
credibility

Get credibility rating from tsn
accepted_names

Get accepted names from tsn
common_names

Get common names from tsn
any_match_count

Get any match count.
description

Get description of the ITIS service
itis_highlight

ITIS Solr highlight
full_record

Get full record from TSN or lsid
experts

Get expert information for the TSN.
itis_search

ITIS Solr search
itis_group

ITIS Solr group search
hierarchy

Get hierarchy down from tsn
itis_facet

ITIS Solr facet
geographic_divisions

Get geographic divisions from tsn
global_species_completeness

Get global species completeness from tsn
geographic_values

Get all possible geographic values
rank_names

Provides a list of all the unique rank names contained in the database and their kingdom and rank ID values.
rank_name

Returns the kingdom and rank information for the TSN.
kingdoms

Get kingdom names from tsn
record

Gets a record from an LSID
other_sources

Returns a list of the other sources used for the TSN.
jurisdiction

Get jurisdictional origin from tsn
parent_tsn

Returns the parent TSN for the entered TSN.
last_change_date

Provides the date the ITIS database was last updated
publications

Returns a list of the pulications used for the TSN.
lsid2tsn

Gets the TSN corresponding to the LSID, or an empty result if there is no match.
search_anymatch

Search for any match
search_common

Search for tsn by common name
search_scientific

Search by scientific name
review_year

Returns the review year for the TSN.
synonym_names

Returns a list of the synonyms (if any) for the TSN.
scientific_name

Returns the scientific name for the TSN. Also returns the component parts (names and indicators) of the scientific name.
search_any_match_paged

Search for any matched page
taxon_authorship

Returns the author information for the TSN.
solr

ITIS Solr Methods
ritis-package

Interface to Integrated Taxonomic Information (ITIS)
tsn_by_vernacular_language

Get tsn by vernacular language
tsn2lsid

Gets the unique LSID for the TSN, or an empty result if there is no match.
terms

Get ITIS terms, i.e., tsn's, authors, common names, and scientific names.
usage

Returns the usage information for the TSN.
unacceptability_reason

Returns the unacceptability reason, if any, for the TSN.
vernacular_languages

Provides a list of the unique languages used in the vernacular table.