Giter Club home page Giter Club logo

originr's Introduction

originr

Project Status: Abandoned

This repository has been archived. The former README is now in README-NOT.md.

originr's People

Contributors

ibartomeus avatar maelle avatar sckott avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

originr's Issues

CITES API

I just leave here a note that CITES has an API to retrieve information on distribution and regulation of of species with commercial interest: http://api.speciesplus.net/

Can be added at some point.

eol() function gives error

Since last update:

`eol(name=c("Carpobrotus edulis", "Rosmarinus officinalis"))

Error in verbose() : could not find function "verbose"`

After looking a bit I manually loaded library(httr) and it works, but then produce a ridiculous amount of verbose output.

I am in using devtools::install_github("ropensci/originr") not the CRAN version.

sessionInfo()
R version 3.4.1 (2017-06-30)
Platform: x86_64-apple-darwin15.6.0 (64-bit)
Running under: macOS High Sierra 10.13.3

Matrix products: default
BLAS: /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib
LAPACK: /Library/Frameworks/R.framework/Versions/3.4/Resources/lib/libRlapack.dylib

locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8

attached base packages:
[1] stats graphics grDevices utils datasets methods base

other attached packages:
[1] httr_1.3.1 reshape2_1.4.3 taxize_0.9.2 originr_0.2.1.9115

loaded via a namespace (and not attached):
[1] Rcpp_0.12.16 xml2_1.2.0 magrittr_1.5 devtools_1.13.3
[5] ape_5.0 lattice_0.20-35 R6_2.2.2 foreach_1.4.4
[9] stringr_1.3.0 plyr_1.8.4 tools_3.4.1 parallel_3.4.1
[13] bold_0.5.0 grid_3.4.1 data.table_1.10.4-3 nlme_3.1-131
[17] git2r_0.19.0 withr_1.0.2 iterators_1.0.9 digest_0.6.13
[21] codetools_0.2-15 rsconnect_0.8 curl_3.1 crul_0.5.2
[25] memoise_1.1.0 stringi_1.1.7 compiler_3.4.1 jsonlite_1.5
[29] reshape_0.8.7 zoo_1.8-1

Species found in 'gisd' but not in 'all' using command eol

Using the example code provided in the help:

This finds 2 records

library(originr)
  eol(name=c('Lymantria dispar','Cygnus olor','Hydrilla verticillata','Pinus concolor'),
      dataset='gisd',count = T)
>2

However the same command using dataset ='all' finds none

  eol(name=c('Lymantria dispar','Cygnus olor','Hydrilla verticillata','Pinus concolor'),
      dataset='all',count = T)
>0

Given that the description says "all == All datasets", this appears weird to me ?

Flora Europaea inaccessible

Access to the Flora Europaea homepage [http://rbg-web2.rbge.org.uk/FE/fe.html]
is now redirected to the Euro+Med homepage :-(

Add fishbase?

Fishbase has data on fish introductions. We can use rfishbase and just call two functions from the package:

introductions("Alburnus alburnus")
faoareas("Alburnus alburnus")
#idem: distribution("Alburnus alburnus")

Two other functions would be nice, but would need a bit more of work:

  1. Search origin by species country(fish) would need to translate the CountryRefNo or c_code to the actual country. I can't find where this is stored. Sorry. Maybe @cboettig can point me out where?

  2. Search by country. Here I am even more lost. c_code(c_code = "724") returns the same list of species (SpecCode) regardless of the code passed (c_code(c_code = "Spain") or c_code(c_code = "France")).

What do you think?

nsr() needs error message when country is misspelled

nsr(c("Pinus ponderosa", "Poa annua"), "United States") #ok
nsr(c("Pinus ponderosa", "Poa annua"), "United State") #return blank dataframe

And I can't find a list of valid country names. A link to accepted country names in the help may be cool.

flora_europaea() fails with factors

When a factor is provided in the species names, it need to be transformed to as.chracter() in order to work.

Easy fix. I'll fix that soon.

Querying empty strings returns results

Which I think shouldn't happen as it can potentially introduce errors.

library(originr)
eol(name="",dataset='gisd')

Suggestion: Return NA on default for strings shorter than 1 character.

Expand griis function to cover all countries covered by GRIIS

The griis() function currently covers 122 countries. However, the article "Introducing the Global Register of Introduced and Invasive Species" states that information is available for 198 countries. Missing are for example "Sweden". Looking forward to seeing this package grow! very useful for me :)

Session Info

heads up

@ibartomeus moved fxns about whether species are native or invasive to a sep package, this one - added you as author. chime in if you have any thoughts

will close this soon, just letting you know

is_native returns errors for some species

Example:

library(originr)
is_native("Bombus occidentalis",where = "Continental US",region = "america")

Error in data.frame(name = sp, origin = Out, stringsAsFactors = FALSE) :
arguments imply differing number of rows: 1, 0

Bombus occidentalis should be native in the US (or return not included in itis as they don't seem to capture invertebrates well).

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.