View source: R/calc-iphc-ser.R
format_iphc_longest | R Documentation |
Format the longest IPHC time series index to agree with other surveys so that plot_survey_index() in gfplot (and may get moved to here) works automatically. So the mean catch rate gets renames as ‘biomass’ even though it's numbers per effective skate.
format_iphc_longest(iphc_set_counts_sp)
iphc_set_counts_sp |
Output from |
Renamed ser_longest, with some required columns calculated.
## Not run:
# If already loaded data via gfsynopsis then
dat_iphc <- readRDS("../gfsynopsis/report/data-cache/iphc/yelloweye-rockfish.rds")
set_counts <- dat_iphc$set_counts
# Else to load from scratch:
# set_counts <- get_all_iphc_set_counts("yelloweye rockfish")
iphc_set_counts_sp <- calc_iphc_full_res(set_counts)
format_iphc_longest(iphc_set_counts_sp)
# Has no data for early years or 2013:
sp = "china rockfish"
# If already loaded data via gfsynopsis then
dat_iphc <- readRDS("../gfsynopsis/report/data-cache/iphc/china-rockfish.rds")
set_counts <- dat_iphc$set_counts
# Else to load from scratch:
# set_counts <- get_all_iphc_set_counts(sp)
iphc_set_counts_sp <- calc_iphc_full_res(set_counts)
format_iphc_longest(iphc_set_counts_sp)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.