README.md

rreptiledb

Travis build
status AppVeyor build
status CRAN
status Codecov test
coverage

rreptiledb allows you to search and download data hosted on the Reptile Database through R.

Installation

Install from GitHub with:

pak::pkg_install("matthewlewis896/rreptiledb")

Use

Load the package using:

library(rreptiledb)

Download the latest species checklist on the reptile database with:

sp_list <- rd_species()

Fetch data for any species using rd_fetch():

sp <- rd_fetch(binomial = "Boa constrictor")

This returns a list with named items as they appear on the Reptile Database. For instance:

print(sp$Higher_Taxa)
[1] "Boidae (Boinae), Henophidia, Alethinophidia, Serpentes, Squamata (snakes)"

print(sp$Subspecies)
[1] "Boa constrictor constrictor LINNAEUS 1758"     "Boa constrictor longicauda PRICE & RUSSO 1991"
[3] "Boa constrictor occidentalis PHILIPPI 1873"    "Boa constrictor ortonii COPE 1877" 


matthewlewis896/rreptiledb documentation built on Aug. 14, 2022, 10:59 p.m.