-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathREADME.Rmd
More file actions
46 lines (34 loc) · 1.53 KB
/
Copy pathREADME.Rmd
File metadata and controls
46 lines (34 loc) · 1.53 KB
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
38
39
40
41
42
43
44
45
46
---
title: "fishSim"
output: github_document
---
```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE)
```
**an R tool for simulation of fish population dynamics**
Simple tool for fish population dynamics, written so that I have full
flexibility on what I simulate. Handles generating an initial
population, markovian movement between populations, mating,
sex-switching, aging, and flexible mortality patterns. Assigns
parentage at all breeding events to allow reconstruction of kin
relationships. Also includes archiving and data-management tools.
Mating can be set to have an age at first breeding (and 'flat'
fecundity per-mating at greater ages), fully age-specific fecundity
per mating, or fully age- and sex-specific fecundity per mating.
Mortality can be set to bring a population down to a specific size by
randomly killing individuals, to randomly kill individuals with a set
probability (without setting a target population size, allowing
stochastic population growth), or to randomly kill individuals with a
stock-specific probability, age-specific probability, or
stock-and-age-specific probability.
# Installing from Github
To install this package directly from Github, you can use `devtools`:
``` r
devtools::install_github(repo = "SMBaylis/fishSim")
```
# Installing from local source
To install this package from source, download the .zip, then use `remotes`:
``` r
remotes::install_local("/filepath/to/fishSim-master.zip")
```
Make sure to update "/filepath/to/fishSim-master.zip" to the full filepath for your download location.