https://github.com/eeholmes/sardine-f0
Repository for Holmes et al 2021. Improving landings forecasts using environmental covariates: a case study on the Indian oil sardine (*Sardinella longiceps*)
https://github.com/eeholmes/sardine-f0
manuscript sardine
Last synced: 5 months ago
JSON representation
Repository for Holmes et al 2021. Improving landings forecasts using environmental covariates: a case study on the Indian oil sardine (*Sardinella longiceps*)
- Host: GitHub
- URL: https://github.com/eeholmes/sardine-f0
- Owner: eeholmes
- Created: 2021-04-25T02:03:53.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2022-10-14T22:42:24.000Z (almost 4 years ago)
- Last Synced: 2025-04-11T20:43:02.703Z (over 1 year ago)
- Topics: manuscript, sardine
- Language: HTML
- Homepage:
- Size: 129 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Sardine-F0
[](https://zenodo.org/badge/latestdoi/361308628)
Repository for Holmes, E.E., BR, S., Nimit, K., Maity, S., Checkley, D.M., Jr., Wells, M.L. and Trainer, V.L. (2021), Improving landings forecasts using environmental covariates: A case study on the Indian oil sardine (Sardinella longiceps). Fisheries Oceanography 30(6): 623-642
## Paper
Knit `Manuscript_w_Appendices.Rmd`. This will call the files in the Rmd folder that are needed to build the paper. The paper is formatted to knit to html will look weird in other outputs.
Knit `Supplements.Rmd` to make the Supplements. The Supplements are formatted to be knitted to PDF. They might not look good if knitted to html.
## Data
The raw data are in the SardineForecast package, included as a tar.gz in the data folder. csv of the data are also in the data folder but not used in the scripts
`setup.Rmd` is the key file that takes the monthly data in SardineForecast and prepares the data frames for various monthly averaged covariate data and seasonal catch data used in the paper. This Rmd is called by all the Rmds.
The paper used SardineForecast package verison 1.11 which is included as a tar.gz file in the data folder in the repository. To install from a tar.gz file, use
```
install.packages("data/SardineForecast-1.11-paper.tar.gz", repos = NULL)
```
You will need to be able to build packages from source in order for this to work. If you install packages from GitHub, you already do this.
Once the SardineForecast package is loaded, you can use `?` to get the background information on each data set. Type `?SardineForecast` and then Index at the bottom to find the help files.
If for some reason loading the package does not work, you will find csv files of the data used in the paper in the `data` folder.
## Other files
`AppendixFiles` are Rmds called by `Appendices.Rmd` to make each table. The folder also includes functions that standardize the table building.
`SupplementFiles` has the individual Rmd files and data used to make the tables and figures in the Supplements. Some of the appendix functions in `AppendixFiles` are also used.