R script for extracting geographic occurrences and climate data


This github repository contains two scripts will extract the geographic occurrence data from the BIEN database or the GBIF database. After obtaing occurrence data, each script will then retrieve climate data for each occurrence, remove potentially erroneous occurrence data, and calculate the mean of selected climatic distributions for species with more than 15 occurrences. At a minimum, users will have to provide a the names of plant species of interest and a file-path to to climatic data. In the past I’ve used WorldClim data so the code is currently written to retrive Worldclim data from a local file where it is stored. Other climate databases of interest to users may include Chelsa and CRU.