xavi-rp / PreSPickR

PreSPickR: Downloading Species Presences (Occurrences) From Public Repositories

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PreSPickR

The aim of this package is to download species presences (occurrences) data from public repositories. For now it is implemented for Bioatles, which has data from the Balearic Islands, and for GBIF.

Bioatles data is projected in European Datum 1950 (31N). The function bioatles(), which downloads the occurrences, also transform the data set in Lat/Long Geographic Coordinates System WGS84. It is based on several functions included in the packages "rvest" (Wickham, 2016) and "xml2" (Wickham et al., 2017). Finally, it saves the data in a csv file.

Equally, GetBIF() is used to download species occurrences from GBIF. It is based on several functions included in the package "rgbif" (Chamberlain, 2017). It uses the so-called "/occurrence/download route" (see vignettes of the "rgbif" package) which is more appropriate for big data sets. GetBIF() retrieve your GBIF credentials (user, password and email) and automatically makes checks using a loop until the request of the data set made to GBIF is ready. In that moment it starts the download. Finally, it saves the data in a csv file. The data is in Lat/Long Geographic Coordinates System WGS84.

See vignette for some examples.

Download the source package here. Or install the latest version:

library(devtools)
install_github("xavi-rp/PreSPickR")

In case you want to install v.2 (under development):

library(devtools)
install_github("xavi-rp/PreSPickR",
               ref = "v2",
               INSTALL_opts = c("--no-multiarch")  # https://github.com/rstudio/renv/issues/162
               )

References

About

PreSPickR: Downloading Species Presences (Occurrences) From Public Repositories

License:GNU General Public License v3.0


Languages

Language:R 100.0%