ropensci/rglobi

Name: rglobi

Owner: rOpenSci

Description: R library to access species interaction data of http://globalbioticinteractions.org

Created: 2014-04-30 03:49:39.0

Updated: 2017-08-11 14:20:58.0

Pushed: 2017-12-15 19:00:24.0

Homepage: null

Size: 178

Language: R

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

rglobi

R library to access species interaction data of http://globalbioticinteractions.org

Build Status rstudio mirror downloads cran version

install

To install `rglobi` from CRAN:

all.packages("rglobi")

Or install development version:

all.packages("devtools")
ools::install_github("ropensci/rglobi")
examples
ary(rglobi)
nd all unique prey names of Homo sapiens
_of("Homo sapiens")$target_taxon_name
 a shortcut of
interactions_by_taxa(sourcetaxon='Homo sapiens', interactiontype='preysOn')$target_taxon_name

st of supported interactions types
interaction_types()

l known prey names and locations (latitude, longitude) where birds (Aves) preyed on rodents (Rodentia) in California
<- get_interactions_by_taxa(sourcetaxon = "Aves", bbox=c(-125.53344800000002,32.750323,-114.74487299999998,41.574361), targettaxon = "Rodentia", returnobservations=T)
tions <- cbind(obs$target_taxon_name, obs$latitude, obs$longitude)

Please see R help pages (e.g. `?get_interactions_by_taxa` and vignettes for more information.

tests

Tests can be executed using devtools package.

rkdir should be rglobi repo root directory (check with getwd())
stall dependencies 
ools::install('.')
ools::test()

This should reload the library, executes the test_that testcases and show test reports.

documentation

roxygen2 is used to generate .Rd and NAMESPACE by running:

rary(roxygen2)
ygenize(".")

Vignettes are generated using `knitrand ``markdown``` packages.

meta

Please report any issues or bugs.

This package is part of the rOpenSci project.

rOpenSci footer


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.