ohi logo
OHI Science | Citation policy

1 Methods

## 
## Attaching package: 'dplyr'
## The following objects are masked from 'package:stats':
## 
##     filter, lag
## The following objects are masked from 'package:base':
## 
##     intersect, setdiff, setequal, union
## here() starts at /home/sgclawson/github/ohiprep_v2019
## This file makes it easier to process data for the OHI global assessment
##  by creating the following objects:
## 
##  * dir_M = identifies correct file path to Mazu (internal server) based on your operating system
##  * mollCRS = the crs code for the mollweide coordinate reference system we use in the global assessment
##  * regions_shape() = function to load global shapefile for land/eez/high seas/antarctica regions
##  * ohi_rasters() = function to load two rasters: global eez regions and ocean region
##  * region_data() = function to load 2 dataframes describing global regions 
##  * rgn_syns() = function to load dataframe of region synonyms (used to convert country names to OHI regions)
##  * low_pop() = function to load dataframe of regions with low and no human population
##  * UNgeorgn = function to load dataframe of UN geopolitical designations used to gapfill missing data

2 Import Output Data: Mariculture data

Mariculture production in tonnes.

Fisheries data.

3 Wrangle

3.1 Tidy MAR data

## # A tibble: 14 x 3
##    rgn_id  year mar_t
##     <int> <int> <dbl>
##  1     95  2004    21
##  2     95  2005     2
##  3     95  2006     2
##  4     95  2007     2
##  5     95  2008     0
##  6     95  2009     0
##  7     95  2010     0
##  8     95  2011     0
##  9     95  2012     0
## 10     95  2013     0
## 11     95  2014     0
## 12     95  2015     0
## 13     95  2016     0
## 14     95  2017     0

4 Data check

Compare to previous year data (a big jump in fish data, so not super compatible, but should be correlated at least)

5 Save data