-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathREADME.Rmd
37 lines (28 loc) · 904 Bytes
/
README.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
---
output: github_document
---
<!-- README.md is generated from README.Rmd. Please edit that file -->
```{r setup, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```
# LeMaRns
Set up, run and explore the outputs of the Length-based Multi-species model LeMans, focused on the marine environment.
## Installation
You can install the released version of LeMaRns from [CRAN](https://CRAN.R-project.org) with:
``` r
install.packages("LeMaRns")
```
## Example
This is a basic example of how to set up, run and plot the resulting Spawning Stock Biomass (SSB):
```{r example}
library(LeMaRns)
NS_params <- LeMansParam(NS_par, tau=NS_tau, eta=eta, L50=L50, other=1e12)
effort <- matrix(0.25, 50, dim(NS_params @Qs)[3])
model_run <- run_LeMans(NS_params, years=50, effort=effort)
plot_SSB(NS_params, model_run)
```