Giter Club home page Giter Club logo

rglobi's Introduction

rGloBI

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

Build Status rstudio mirror downloads cran version codecov.io

install

To install rglobi from CRAN:

install.packages("rglobi")

Or install development version:

install.packages("devtools")
devtools::install_github("ropensci/rglobi")

examples

library(rglobi)
# find all unique prey names of Homo sapiens
prey_of("Homo sapiens")$target_taxon_name
# is a shortcut of
get_interactions_by_taxa(sourcetaxon='Homo sapiens', interactiontype='preysOn')$target_taxon_name

# list of supported interactions types
get_interaction_types()

# all known prey names and locations (latitude, longitude) where birds (Aves) preyed on rodents (Rodentia) in California
obs <- get_interactions_by_taxa(sourcetaxon = "Aves", bbox=c(-125.53344800000002,32.750323,-114.74487299999998,41.574361), targettaxon = "Rodentia", returnobservations=T)
locations <- 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.

# workdir should be rglobi repo root directory (check with getwd())
# install dependencies 
devtools::install('.')
devtools::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:

 library(roxygen2)
 roxygenize(".")

Vignettes are generated using knitr and markdown packages.

meta

Please report any issues or bugs.

This package is part of the rOpenSci project.

rOpenSci footer

rglobi's People

Contributors

jsgosnell avatar jemmybutton avatar sckott avatar stevenysw avatar

Watchers

James Cloos avatar Hong Qin avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.