README.md

cncpointR

See a working google doc for more details: https://docs.google.com/document/d/1Co6yqlGbQrgfuU-GzyJj2kqdebP7gvL03cl1rOn1MxY/edit?ts=5d5c59a7

Execute run-all to load data from .csv file into Rstudio instance. .csv is not saved to repo because of size. The import script that generates .csv file is not ready to be executed locally on a computer besides Ian's, so really only Ian can run the workflow as of now.

You can run read-cec-ecorgn-cnc-area.R to import Terrestrial Ecoregions shapefile and CNC Area shapefile into Rstudio instance.

See 'R/rmds/data-preparation.rmd' for vignette on data preparation.

To Do: - Complete boundary-selection rmd. - Add additional vignettes. - Clean up the data request and write csv for smoother pipeline and workflow. - Using https://help.github.com/en/articles/removing-sensitive-data-from-a-repository, remove username and password from history, and hide for reupload. -Update DESCRIPTION

Methodology: 1. The CNC area of interest is defined (Boston) and imported as a shapefile. 2. The Level II Commission for Environmental Cooperation (CEC) terrestrial ecoregions the compose the CNC area are identified. 3. A bounding box is constructed around those ecoregions. 4. Data set is requested from GBIF for Research Grade iNaturalist Data with specifications: - Observation has coordinates. - Coordinates of observation fall within the Level II bounding box. - The recorded Basis of the Observation is "Human Observation". 5. The dataset is retrieved as a .csv file, saved, and imported into R session as lvl2 a dataframe. 6. The lvl2 is filtered according to the following criteria: - Observation has a coordinate uncertainty of 30m or less. - Class of the observation is not "Aves" (Birds). - Class of the observation is not one of "Myxini", "Petromyzontida", "Hyperoartia", "Chondrichthyes", "Actinopterygii", "Sarcopterygii" (intended to filter our fish). - The species of the observation is defined. 7. Another dataframe is defined, cnc_pts, for all observations of lvl2 that fall within the CNC area.

Sources: 1. CEC Terrestrial Ecoregions http://www.cec.org/tools-and-resources/map-files/terrestrial-ecoregions-level-ii



iozeroff/cncpointR documentation built on Feb. 4, 2020, 6:18 p.m.