the purpose of this repo is to centralize all data pertaining to Philippines PIRE fish biodiversity surveys. Initial surveys were conducted in 1978 and 1979. Duplicate surveys were conducted in 2019 and 2022.
SI
: 1978-79 Smithsonian ExpeditionSU
: 2019-present PIRE ExpeditionsCAS
: 2016 Cal Academy of Sciences Expeditiondata
: 20teens data from Kent Carpenterfigures
: Plots made from analysesliterature
: Background information on community similarity and how to statistically analyze itrr_proposal
: Contains proposal graphic mockup explaining PCAscripts
: R codes that wrangle data, and create all graphics and analysesRpackage to do what EstimateS does: Vegan
This is where all the data is that John Whalen has organized. Dirs with data that we analyze from these places should be transferred to this repo and not modified.
Google Drive → Philippines PIRE → Rotenone_Database
These are instructions if you are reading in the data for the first time. Once you have done all the following steps successfully, you can just run the whole fish_biodiveristy/scripts/wangle_cas_si_su_data.R
script.
Clone this repo to your computer
Open RStudio
R 4.2.1
and a 2022 version of R StudioMake sure you have all of the dependencies and they are up to date 2022 versions
library(tidyverse)
library(readxl)
library(janitor)
library(purrr)
library(magrittr)
library(measurements)
library(lubridate)
library(readr)
library(devtools)
#install_github("decisionpatterns/tidyimpute")
library(tidyimpute)
Open fish_biodiversity/scripts/wrangle_cas_si_su_data.R
in R Studio
alt-o
to collapse sectionsINITIALIZE
and USER DEFINED VARIABLES
sections
READ IN DATA
run each line one by one checking for errors
The result should be a single tibble named data_cas_si_su_mpa_pop
select()
command that removes the column of interestOpen fish_biodiversity/scripts/distance_calculations_mpa.R
in R Studio
Open fish_biodiversity/scripts/wrangle_arcgis.R
in R Studio