Skip to content

Commit

Permalink
Quick fix for survey abbreviations
Browse files Browse the repository at this point in the history
  • Loading branch information
jepa committed Jan 27, 2023
1 parent 4f1c28d commit 5017b0e
Showing 1 changed file with 26 additions and 1 deletion.
27 changes: 26 additions & 1 deletion MHW_stats_and_figures_supplement.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,32 @@ knitr::opts_chunk$set(
# Supplementary tables

```{r tbl-surveys}
kbl(survey_names, booktabs=TRUE, col.names=c("Code","Survey"), caption="Survey names used in this analysis, and corresponding codes used in figures and tables in this Supplement.") %>%
# Include abbreviations used on Figure 1
survey_names %>%
mutate(title = paste(title, c(
"(BalS)",
"(BC)",
"(EBS)",
"(FR)",
"(EC)",
"(GoM)",
"(GoA)",
"(GSL)",
"(IR)",
"(NeUS)",
"(NI)",
"(NO)",
"(NS)",
"(PO)",
"(SS)",
"(SeUS)",
"(SC)",
"(WUS)"
)),
title = ifelse(title == "Norway (NO)", "Barents Sea (BarS)",title)
) %>%
kbl(booktabs=TRUE, col.names=c("Code","Survey"), caption="Survey names used in this analysis, and corresponding codes used in figures and tables in this Supplement.") %>%
kable_styling(font_size = 8, latex_options = c("striped"))
```

Expand Down

0 comments on commit 5017b0e

Please sign in to comment.