diff --git a/DESCRIPTION b/DESCRIPTION index 400ad3081..cc58e2d04 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -18,7 +18,7 @@ Authors@R: c(person("Gustav", "Delius", email="gustav.delius@york.ac.uk", comment = c(ORCID = "0000-0002-8478-3430")), person("Richard", "Southwell", email="richard.southwell@york.ac.uk", role=c("ctb", "cph"))) -Version: 2.0.2.9001 +Version: 2.0.3 License: GPL-3 Imports: assertthat, diff --git a/NEWS.md b/NEWS.md index 4526fd2ea..2ff95fab6 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,4 +1,4 @@ -# mizer 2.0.2.9001 +# mizer 2.0.3 ## Bug fixes diff --git a/cran-comments.md b/cran-comments.md index eb3e2e059..daeb259e5 100644 --- a/cran-comments.md +++ b/cran-comments.md @@ -4,5 +4,9 @@ 0 errors ✓ | 0 warnings ✓ | 0 notes ✓ +* ubuntu 18.04 bionic, R 4.0.2 + + 0 errors ✓ | 0 warnings ✓ | 0 notes ✓ + * win-builder (release and oldrelease) No Notes, Warnings or Errors diff --git a/docs/404.html b/docs/404.html index 300311f41..af2724103 100644 --- a/docs/404.html +++ b/docs/404.html @@ -77,7 +77,7 @@ mizer - 2.0.2 + 2.0.3 @@ -198,7 +198,7 @@

Contents

-

Site built with pkgdown 1.5.1.9000.

+

Site built with pkgdown 1.5.1.

diff --git a/docs/CONTRIBUTING.html b/docs/CONTRIBUTING.html index 2fd4c82dc..1f4beb212 100644 --- a/docs/CONTRIBUTING.html +++ b/docs/CONTRIBUTING.html @@ -77,7 +77,7 @@ mizer - 2.0.2 + 2.0.3 @@ -236,7 +236,7 @@

Contents

-

Site built with pkgdown 1.5.1.9000.

+

Site built with pkgdown 1.5.1.

diff --git a/docs/articles/a_multispecies_model_of_the_north_sea.html b/docs/articles/a_multispecies_model_of_the_north_sea.html index 24b816be4..3a8f7d713 100644 --- a/docs/articles/a_multispecies_model_of_the_north_sea.html +++ b/docs/articles/a_multispecies_model_of_the_north_sea.html @@ -33,7 +33,7 @@ mizer - 2.0.2 + 2.0.3 @@ -128,7 +128,7 @@ -
+
-

Site built with pkgdown 1.5.1.9000.

+

Site built with pkgdown 1.5.1.

diff --git a/docs/articles/a_multispecies_model_of_the_north_sea_files/accessible-code-block-0.0.1/empty-anchor.js b/docs/articles/a_multispecies_model_of_the_north_sea_files/accessible-code-block-0.0.1/empty-anchor.js new file mode 100644 index 000000000..ca349fd6a --- /dev/null +++ b/docs/articles/a_multispecies_model_of_the_north_sea_files/accessible-code-block-0.0.1/empty-anchor.js @@ -0,0 +1,15 @@ +// Hide empty tag within highlighted CodeBlock for screen reader accessibility (see https://github.com/jgm/pandoc/issues/6352#issuecomment-626106786) --> +// v0.0.1 +// Written by JooYoung Seo (jooyoung@psu.edu) and Atsushi Yasumoto on June 1st, 2020. + +document.addEventListener('DOMContentLoaded', function() { + const codeList = document.getElementsByClassName("sourceCode"); + for (var i = 0; i < codeList.length; i++) { + var linkList = codeList[i].getElementsByTagName('a'); + for (var j = 0; j < linkList.length; j++) { + if (linkList[j].innerHTML === "") { + linkList[j].setAttribute('aria-hidden', 'true'); + } + } + } +}); diff --git a/docs/articles/a_multispecies_model_of_the_north_sea_files/figure-html/plot_ns_indicators-1.png b/docs/articles/a_multispecies_model_of_the_north_sea_files/figure-html/plot_ns_indicators-1.png index 762456d7a..a49140dff 100644 Binary files a/docs/articles/a_multispecies_model_of_the_north_sea_files/figure-html/plot_ns_indicators-1.png and b/docs/articles/a_multispecies_model_of_the_north_sea_files/figure-html/plot_ns_indicators-1.png differ diff --git a/docs/articles/a_multispecies_model_of_the_north_sea_files/figure-html/projected_ssb_ns-1.png b/docs/articles/a_multispecies_model_of_the_north_sea_files/figure-html/projected_ssb_ns-1.png index 95acc5ed8..de136c0c1 100644 Binary files a/docs/articles/a_multispecies_model_of_the_north_sea_files/figure-html/projected_ssb_ns-1.png and b/docs/articles/a_multispecies_model_of_the_north_sea_files/figure-html/projected_ssb_ns-1.png differ diff --git a/docs/articles/community_model.html b/docs/articles/community_model.html index 3f1bfb971..39cd11ca2 100644 --- a/docs/articles/community_model.html +++ b/docs/articles/community_model.html @@ -33,7 +33,7 @@ mizer - 2.0.2 + 2.0.3
@@ -128,7 +128,7 @@ -
+
-
+

-Bug fixes

+Bug fixes
  • In getSSB(), the calculation of the spawning stock biomass is done correctly using the maturity ogive instead of the proportion of energy allocated to reproduction. (#47)
  • The fast FFT method and the old method for calculating integrals now give the same numerical results. (#39)
  • @@ -612,7 +637,7 @@

    Contents

-

Site built with pkgdown 1.5.1.9000.

+

Site built with pkgdown 1.5.1.

diff --git a/docs/pkgdown.css b/docs/pkgdown.css index 1273238dd..c01e5923b 100644 --- a/docs/pkgdown.css +++ b/docs/pkgdown.css @@ -244,14 +244,14 @@ nav[data-toggle='toc'] .nav .nav > .active:focus > a { .ref-index th {font-weight: normal;} -.ref-index td {vertical-align: top; min-width: 100px} +.ref-index td {vertical-align: top;} .ref-index .icon {width: 40px;} .ref-index .alias {width: 40%;} .ref-index-icons .alias {width: calc(40% - 40px);} .ref-index .title {width: 60%;} .ref-arguments th {text-align: right; padding-right: 10px;} -.ref-arguments th, .ref-arguments td {vertical-align: top; min-width: 100px} +.ref-arguments th, .ref-arguments td {vertical-align: top;} .ref-arguments .name {width: 20%;} .ref-arguments .desc {width: 80%;} diff --git a/docs/pkgdown.yml b/docs/pkgdown.yml index 39812c081..3797f12d0 100644 --- a/docs/pkgdown.yml +++ b/docs/pkgdown.yml @@ -1,6 +1,6 @@ pandoc: 2.7.3 -pkgdown: 1.5.1.9000 -pkgdown_sha: 3b74d8860686ed6d63e536d7ec4971fbbde5faff +pkgdown: 1.5.1 +pkgdown_sha: ~ articles: _build_model_1: Lysekil/_build_model_1.html _build_model_2: Lysekil/_build_model_2.html @@ -21,7 +21,7 @@ articles: running_a_simulation: running_a_simulation.html trait_model: trait_model.html working_with_git: working_with_git.html -last_built: 2020-06-08T15:57Z +last_built: 2020-07-28T14:17Z urls: reference: https://sizespectrum.org/mizer/reference article: https://sizespectrum.org/mizer/articles diff --git a/docs/reference/BevertonHoltRDD.html b/docs/reference/BevertonHoltRDD.html index 7855c8454..71a681e1c 100644 --- a/docs/reference/BevertonHoltRDD.html +++ b/docs/reference/BevertonHoltRDD.html @@ -82,7 +82,7 @@ mizer - 2.0.2 + 2.0.3
@@ -247,7 +247,7 @@

Contents

-

Site built with pkgdown 1.5.1.9000.

+

Site built with pkgdown 1.5.1.

diff --git a/docs/reference/MizerParams-class.html b/docs/reference/MizerParams-class.html index 3cb4f2e64..26291192f 100644 --- a/docs/reference/MizerParams-class.html +++ b/docs/reference/MizerParams-class.html @@ -82,7 +82,7 @@ mizer - 2.0.2 + 2.0.3
@@ -199,7 +199,7 @@

Slots

-
+
w

The size grid for the fish part of the spectrum. An increasing vector of weights (in grams) running from the smallest egg size to the largest asymptotic size.

@@ -359,7 +359,7 @@

Contents

-

Site built with pkgdown 1.5.1.9000.

+

Site built with pkgdown 1.5.1.

diff --git a/docs/reference/MizerParams.html b/docs/reference/MizerParams.html index ce6d70cc9..91661fab4 100644 --- a/docs/reference/MizerParams.html +++ b/docs/reference/MizerParams.html @@ -78,7 +78,7 @@ mizer - 2.0.2 + 2.0.3
@@ -288,7 +288,7 @@

Contents

-

Site built with pkgdown 1.5.1.9000.

+

Site built with pkgdown 1.5.1.

diff --git a/docs/reference/MizerSim-class.html b/docs/reference/MizerSim-class.html index 3523feda8..79b90cffa 100644 --- a/docs/reference/MizerSim-class.html +++ b/docs/reference/MizerSim-class.html @@ -79,7 +79,7 @@ mizer - 2.0.2 + 2.0.3 @@ -222,7 +222,7 @@

Slots

-
+
params

An object of type MizerParams.

n

Three-dimensional array (time x species x size) that stores the @@ -254,7 +254,7 @@

Contents

-

Site built with pkgdown 1.5.1.9000.

+

Site built with pkgdown 1.5.1.

diff --git a/docs/reference/MizerSim.html b/docs/reference/MizerSim.html index 2ef070685..9cf118991 100644 --- a/docs/reference/MizerSim.html +++ b/docs/reference/MizerSim.html @@ -80,7 +80,7 @@ mizer - 2.0.2 + 2.0.3 @@ -234,7 +234,7 @@

Contents

-

Site built with pkgdown 1.5.1.9000.

+

Site built with pkgdown 1.5.1.

diff --git a/docs/reference/N.html b/docs/reference/N.html index 6434a6a45..a911333c5 100644 --- a/docs/reference/N.html +++ b/docs/reference/N.html @@ -78,7 +78,7 @@ mizer - 2.0.2 + 2.0.3 @@ -219,7 +219,7 @@

Contents

-

Site built with pkgdown 1.5.1.9000.

+

Site built with pkgdown 1.5.1.

diff --git a/docs/reference/NOther.html b/docs/reference/NOther.html index 873b9a224..53b2fff03 100644 --- a/docs/reference/NOther.html +++ b/docs/reference/NOther.html @@ -78,7 +78,7 @@ mizer - 2.0.2 + 2.0.3 @@ -216,7 +216,7 @@

Contents

-

Site built with pkgdown 1.5.1.9000.

+

Site built with pkgdown 1.5.1.

diff --git a/docs/reference/NS_params.html b/docs/reference/NS_params.html index cd1ed132b..8c4783a19 100644 --- a/docs/reference/NS_params.html +++ b/docs/reference/NS_params.html @@ -82,7 +82,7 @@ mizer - 2.0.2 + 2.0.3 @@ -206,7 +206,7 @@

Examp
if (FALSE) { sim = project(NS_params, effort = c(Industrial = 0, Pelagic = 1, Beam = 0.5, Otter = 0.5)) -plot(sim) +plot(sim) }
-

Site built with pkgdown 1.5.1.9000.

+

Site built with pkgdown 1.5.1.

diff --git a/docs/reference/NS_species_params.html b/docs/reference/NS_species_params.html index 983f09338..98980e0df 100644 --- a/docs/reference/NS_species_params.html +++ b/docs/reference/NS_species_params.html @@ -82,7 +82,7 @@ mizer - 2.0.2 + 2.0.3 @@ -197,7 +197,7 @@

Example species parameter set based on the North Sea

Format

-

A data frame with 12 rows and 7 columns. Each row is a species.

+

A data frame with 12 rows and 7 columns. Each row is a species.

species

Name of the species

w_inf

The von Bertalanffy W_infinity parameter

w_mat

Size at maturity

@@ -216,7 +216,7 @@

Examp
if (FALSE) { params <- MizerParams(NS_species_params) sim = project(params) -plot(sim) +plot(sim) }
-

Site built with pkgdown 1.5.1.9000.

+

Site built with pkgdown 1.5.1.

diff --git a/docs/reference/NS_species_params_gears.html b/docs/reference/NS_species_params_gears.html index 3b1d2e765..614ad4562 100644 --- a/docs/reference/NS_species_params_gears.html +++ b/docs/reference/NS_species_params_gears.html @@ -81,7 +81,7 @@ mizer - 2.0.2 + 2.0.3 @@ -195,7 +195,7 @@

Example species parameter set based on the North Sea with different gearsFormat

-

A data frame with 12 rows and 8 columns. Each row is a species.

+

A data frame with 12 rows and 8 columns. Each row is a species.

species

Name of the species

w_inf

The von Bertalanffy W_infinity parameter

w_mat

Size at maturity

@@ -216,7 +216,7 @@

Examp params <- MizerParams(NS_species_params_gears) sim = project(params, effort = c(Industrial = 0, Pelagic = 1, Beam = 0.5, Otter = 0.5)) -plot(sim) +plot(sim) }
-

Site built with pkgdown 1.5.1.9000.

+

Site built with pkgdown 1.5.1.

diff --git a/docs/reference/RickerRDD.html b/docs/reference/RickerRDD.html index f85ac7d59..06176ed49 100644 --- a/docs/reference/RickerRDD.html +++ b/docs/reference/RickerRDD.html @@ -80,7 +80,7 @@ mizer - 2.0.2 + 2.0.3 @@ -236,7 +236,7 @@

Contents

-

Site built with pkgdown 1.5.1.9000.

+

Site built with pkgdown 1.5.1.

diff --git a/docs/reference/SheperdRDD.html b/docs/reference/SheperdRDD.html index 2794ad622..04ec92aea 100644 --- a/docs/reference/SheperdRDD.html +++ b/docs/reference/SheperdRDD.html @@ -80,7 +80,7 @@ mizer - 2.0.2 + 2.0.3 @@ -236,7 +236,7 @@

Contents

-

Site built with pkgdown 1.5.1.9000.

+

Site built with pkgdown 1.5.1.

diff --git a/docs/reference/box_pred_kernel.html b/docs/reference/box_pred_kernel.html index 0653efcad..c90a53f79 100644 --- a/docs/reference/box_pred_kernel.html +++ b/docs/reference/box_pred_kernel.html @@ -79,7 +79,7 @@ mizer - 2.0.2 + 2.0.3 @@ -233,7 +233,7 @@

Contents

-

Site built with pkgdown 1.5.1.9000.

+

Site built with pkgdown 1.5.1.

diff --git a/docs/reference/constantRDD.html b/docs/reference/constantRDD.html index fbb06f10e..a0884f156 100644 --- a/docs/reference/constantRDD.html +++ b/docs/reference/constantRDD.html @@ -78,7 +78,7 @@ mizer - 2.0.2 + 2.0.3 @@ -232,7 +232,7 @@

Contents

-

Site built with pkgdown 1.5.1.9000.

+

Site built with pkgdown 1.5.1.

diff --git a/docs/reference/constant_other.html b/docs/reference/constant_other.html index 557d15370..5ee379cf5 100644 --- a/docs/reference/constant_other.html +++ b/docs/reference/constant_other.html @@ -78,7 +78,7 @@ mizer - 2.0.2 + 2.0.3 @@ -224,7 +224,7 @@

Contents

-

Site built with pkgdown 1.5.1.9000.

+

Site built with pkgdown 1.5.1.

diff --git a/docs/reference/default_pred_kernel_params.html b/docs/reference/default_pred_kernel_params.html index a7cd2a581..9115c3729 100644 --- a/docs/reference/default_pred_kernel_params.html +++ b/docs/reference/default_pred_kernel_params.html @@ -80,7 +80,7 @@ mizer - 2.0.2 + 2.0.3 @@ -219,7 +219,7 @@

Contents

-

Site built with pkgdown 1.5.1.9000.

+

Site built with pkgdown 1.5.1.

diff --git a/docs/reference/double_sigmoid_length.html b/docs/reference/double_sigmoid_length.html index ecbe4ad11..f37da0774 100644 --- a/docs/reference/double_sigmoid_length.html +++ b/docs/reference/double_sigmoid_length.html @@ -81,7 +81,7 @@ mizer - 2.0.2 + 2.0.3 @@ -255,7 +255,7 @@

Contents

-

Site built with pkgdown 1.5.1.9000.

+

Site built with pkgdown 1.5.1.

diff --git a/docs/reference/emptyParams.html b/docs/reference/emptyParams.html index 8ac36a3bc..a207151a3 100644 --- a/docs/reference/emptyParams.html +++ b/docs/reference/emptyParams.html @@ -81,7 +81,7 @@ mizer - 2.0.2 + 2.0.3 @@ -276,7 +276,7 @@

Contents

-

Site built with pkgdown 1.5.1.9000.

+

Site built with pkgdown 1.5.1.

diff --git a/docs/reference/finalN.html b/docs/reference/finalN.html index fd340f525..4e3b97742 100644 --- a/docs/reference/finalN.html +++ b/docs/reference/finalN.html @@ -78,7 +78,7 @@ mizer - 2.0.2 + 2.0.3 @@ -220,7 +220,7 @@

Contents

-

Site built with pkgdown 1.5.1.9000.

+

Site built with pkgdown 1.5.1.

diff --git a/docs/reference/finalNOther.html b/docs/reference/finalNOther.html index f332069a4..cd031f51c 100644 --- a/docs/reference/finalNOther.html +++ b/docs/reference/finalNOther.html @@ -78,7 +78,7 @@ mizer - 2.0.2 + 2.0.3 @@ -216,7 +216,7 @@

Contents

-

Site built with pkgdown 1.5.1.9000.

+

Site built with pkgdown 1.5.1.

diff --git a/docs/reference/getBiomass.html b/docs/reference/getBiomass.html index 9ec611dcc..a6939fabb 100644 --- a/docs/reference/getBiomass.html +++ b/docs/reference/getBiomass.html @@ -84,7 +84,7 @@ mizer - 2.0.2 + 2.0.3 @@ -207,7 +207,7 @@

Arg ... -

Arguments passed on to get_size_range_array

+

Arguments passed on to get_size_range_array

min_w

Smallest weight in size range. Defaults to smallest weight in the model.

max_w

Largest weight in size range. Defaults to largest weight in the @@ -257,7 +257,7 @@

Contents

-

Site built with pkgdown 1.5.1.9000.

+

Site built with pkgdown 1.5.1.

diff --git a/docs/reference/getBiomassFrame.html b/docs/reference/getBiomassFrame.html index ae310fa4d..97a20423d 100644 --- a/docs/reference/getBiomassFrame.html +++ b/docs/reference/getBiomassFrame.html @@ -80,7 +80,7 @@ mizer - 2.0.2 + 2.0.3 @@ -234,7 +234,7 @@

Arg ... -

Arguments passed on to get_size_range_array

+

Arguments passed on to get_size_range_array

min_w

Smallest weight in size range. Defaults to smallest weight in the model.

max_w

Largest weight in size range. Defaults to largest weight in the @@ -267,7 +267,7 @@

Contents

-

Site built with pkgdown 1.5.1.9000.

+

Site built with pkgdown 1.5.1.

diff --git a/docs/reference/getCommunitySlope.html b/docs/reference/getCommunitySlope.html index 75d538e93..57728f05f 100644 --- a/docs/reference/getCommunitySlope.html +++ b/docs/reference/getCommunitySlope.html @@ -84,7 +84,7 @@ mizer - 2.0.2 + 2.0.3 @@ -223,7 +223,7 @@

Arg ... -

Arguments passed on to get_size_range_array

+

Arguments passed on to get_size_range_array

min_w

Smallest weight in size range. Defaults to smallest weight in the model.

max_w

Largest weight in size range. Defaults to largest weight in the @@ -277,7 +277,7 @@

Contents

-

Site built with pkgdown 1.5.1.9000.

+

Site built with pkgdown 1.5.1.

diff --git a/docs/reference/getComponent.html b/docs/reference/getComponent.html index 3aa031501..f303d4843 100644 --- a/docs/reference/getComponent.html +++ b/docs/reference/getComponent.html @@ -78,7 +78,7 @@ mizer - 2.0.2 + 2.0.3 @@ -222,7 +222,7 @@

Contents

-

Site built with pkgdown 1.5.1.9000.

+

Site built with pkgdown 1.5.1.

diff --git a/docs/reference/getCriticalFeedingLevel.html b/docs/reference/getCriticalFeedingLevel.html index 1675227f4..fe54ad768 100644 --- a/docs/reference/getCriticalFeedingLevel.html +++ b/docs/reference/getCriticalFeedingLevel.html @@ -80,7 +80,7 @@ mizer - 2.0.2 + 2.0.3 @@ -219,7 +219,7 @@

Contents

-

Site built with pkgdown 1.5.1.9000.

+

Site built with pkgdown 1.5.1.

diff --git a/docs/reference/getDiet.html b/docs/reference/getDiet.html index b8c2d21c3..665093dce 100644 --- a/docs/reference/getDiet.html +++ b/docs/reference/getDiet.html @@ -79,7 +79,7 @@ mizer - 2.0.2 + 2.0.3 @@ -259,7 +259,7 @@

Contents

-

Site built with pkgdown 1.5.1.9000.

+

Site built with pkgdown 1.5.1.

diff --git a/docs/reference/getEGrowth.html b/docs/reference/getEGrowth.html index d4e91f1c9..0f7446894 100644 --- a/docs/reference/getEGrowth.html +++ b/docs/reference/getEGrowth.html @@ -48,7 +48,7 @@ +accounted for." /> @@ -80,7 +80,7 @@ mizer - 2.0.2 + 2.0.3 @@ -186,7 +186,7 @@

Get energy rate available for growth

Calculates the energy rate \(g_i(w)\) (grams/year) available by species and size for growth after metabolism, movement and reproduction have been -accounted for. Used by project() for performing simulations.

+accounted for.

getEGrowth(
@@ -194,8 +194,8 @@ 

Get energy rate available for growth

n = initialN(params), n_pp = initialNResource(params), n_other = initialNOther(params), - e_repro = getERepro(params, n = n, n_pp = n_pp, n_other = n_other), - e = getEReproAndGrowth(params, n = n, n_pp = n_pp, n_other = n_other) + t = 0, + ... )

Arguments

@@ -219,24 +219,31 @@

Arg ecosystem

- e_repro -

The energy available for reproduction (optional, although if -specified, e must also be specified). A matrix of size no. species x no. -size bins. If not supplied, is calculated internally using -getERepro().

+ t +

The time for which to do the calculation (Not used by standard +mizer rate functions but useful for extensions with time-dependent +parameters.)

- e -

The energy available for reproduction and growth (optional, although -if specified, e_repro must also be specified). A matrix of size no. -species x no. size bins. If not supplied, is calculated internally using -getEReproAndGrowth().

+ ... +

Unused

Value

A two dimensional array (prey species x prey size)

+

Your own growth rate function

+ + + +

By default getEGrowth() calls mizerEGrowth(). However you can +replace this with your own alternative growth rate function. If +your function is called "myEGrowth" then you register it in a MizerParams +object params with

params &lt;- setRateFunction(params, "EGrowth", "myEGrowth")
+ +

Your function will then be called instead of mizerEGrowth(), with the +same arguments.

See also

getERepro(), getEReproAndGrowth()

@@ -260,7 +267,7 @@

Examp # Project with constant fishing effort for all gears for 20 time steps sim <- project(params, t_max = 20, effort = 0.5) # Get the energy at a particular time step -getEGrowth(params,sim@n[21,,],sim@n_pp[21,]) +getEGrowth(params, n = N(sim)[15, , ], n_pp = NResource(sim)[15, ], t = 15) }

-

Site built with pkgdown 1.5.1.9000.

+

Site built with pkgdown 1.5.1.

diff --git a/docs/reference/getERepro.html b/docs/reference/getERepro.html index 3c80f43f6..dee43ced3 100644 --- a/docs/reference/getERepro.html +++ b/docs/reference/getERepro.html @@ -79,7 +79,7 @@ mizer - 2.0.2 + 2.0.3 @@ -192,7 +192,8 @@

Get energy rate available for reproduction

n = initialN(params), n_pp = initialNResource(params), n_other = initialNOther(params), - e = getEReproAndGrowth(params, n = n, n_pp = n_pp, n_other = n_other) + t = 0, + ... )

Arguments

@@ -216,10 +217,14 @@

Arg ecosystem

- e -

The energy available for reproduction and growth (optional). A -matrix of size no. species x no. size bins. If not supplied, is calculated -internally using getEReproAndGrowth().

+ t +

The time for which to do the calculation (Not used by standard +mizer rate functions but useful for extensions with time-dependent +parameters.)

+ + + ... +

Unused

@@ -232,6 +237,17 @@

Value

and \(\psi_i(w)\) is the proportion of this energy that is used for reproduction. This proportion is taken from the params object and is set with setReproduction().

+

Your own reproduction rate function

+ + + +

By default getERepro() calls mizerERepro(). However you can +replace this with your own alternative reproduction rate function. If +your function is called "myERepro" then you register it in a MizerParams +object params with

params &lt;- setRateFunction(params, "ERepro", "myERepro")
+ +

Your function will then be called instead of mizerERepro(), with the +same arguments.

See also

Other rate functions: @@ -254,7 +270,7 @@

Examp # Project with constant fishing effort for all gears for 20 time steps sim <- project(params, t_max = 20, effort = 0.5) # Get the energy at a particular time step -getERepro(params,sim@n[21,,],sim@n_pp[21,]) +getERepro(params, n = N(sim)[15, , ], n_pp = NResource(sim)[15, ], t = 15) }

-

Site built with pkgdown 1.5.1.9000.

+

Site built with pkgdown 1.5.1.

diff --git a/docs/reference/getEReproAndGrowth.html b/docs/reference/getEReproAndGrowth.html index f67a80b1f..985c187fe 100644 --- a/docs/reference/getEReproAndGrowth.html +++ b/docs/reference/getEReproAndGrowth.html @@ -80,7 +80,7 @@ mizer - 2.0.2 + 2.0.3 @@ -194,9 +194,8 @@

Get energy rate available for reproduction and growth

n = initialN(params), n_pp = initialNResource(params), n_other = initialNOther(params), - encounter = getEncounter(params, n = n, n_pp = n_pp, n_other = n_other), - feeding_level = getFeedingLevel(params, n = n, n_pp = n_pp, n_other = n_other, - encounter = encounter) + t = 0, + ... )

Arguments

@@ -220,16 +219,14 @@

Arg ecosystem

- encounter -

The encounter rate matrix (optional) of dimension no. -species x no. size bins. If not passed in, it is calculated internally -using the getEncounter() function.

+ t +

The time for which to do the calculation (Not used by standard +mizer rate functions but useful for extensions with time-dependent +parameters.)

- feeding_level -

The current feeding level (optional). A matrix of size -no. species x no. size bins. If not supplied, is calculated internally -using the getFeedingLevel() function.

+ ... +

Unused

@@ -249,6 +246,17 @@

Value

params and set with setMetabolicRate().

The return value can be negative, which means that the energy intake does not cover the cost of metabolism and movement.

+

Your own energy rate function

+ + + +

By default getEReproAndGrowth() calls mizerEReproAndGrowth(). However you +can replace this with your own alternative energy rate function. If +your function is called "myEReproAndGrowth" then you register it in a +MizerParams object params with

params &lt;- setRateFunction(params, "EReproAndGrowth", "myEReproAndGrowth")
+ +

Your function will then be called instead of mizerEReproAndGrowth(), with +the same arguments.

See also

The part of this energy rate that is invested into growth is @@ -274,7 +282,7 @@

Examp # Project with constant fishing effort for all gears for 20 time steps sim <- project(params, t_max = 20, effort = 0.5) # Get the energy at a particular time step -getEReproAndGrowth(params,sim@n[21,,],sim@n_pp[21,]) +getEReproAndGrowth(params, n = N(sim)[15, , ], n_pp = NResource[15, ], t = 15) }

-

Site built with pkgdown 1.5.1.9000.

+

Site built with pkgdown 1.5.1.

diff --git a/docs/reference/getESpawning.html b/docs/reference/getESpawning.html index 72554d044..ba438cd09 100644 --- a/docs/reference/getESpawning.html +++ b/docs/reference/getESpawning.html @@ -78,7 +78,7 @@ mizer - 2.0.2 + 2.0.3 @@ -190,7 +190,8 @@

Alias for getERepro

n = initialN(params), n_pp = initialNResource(params), n_other = initialNOther(params), - e = getEReproAndGrowth(params, n = n, n_pp = n_pp, n_other = n_other) + t = 0, + ... )

Arguments

@@ -214,10 +215,14 @@

Arg ecosystem

- e -

The energy available for reproduction and growth (optional). A -matrix of size no. species x no. size bins. If not supplied, is calculated -internally using getEReproAndGrowth().

+ t +

The time for which to do the calculation (Not used by standard +mizer rate functions but useful for extensions with time-dependent +parameters.)

+ + + ... +

Unused

@@ -230,6 +235,17 @@

Value

and \(\psi_i(w)\) is the proportion of this energy that is used for reproduction. This proportion is taken from the params object and is set with setReproduction().

+

Your own reproduction rate function

+ + + +

By default getERepro() calls mizerERepro(). However you can +replace this with your own alternative reproduction rate function. If +your function is called "myERepro" then you register it in a MizerParams +object params with

params &lt;- setRateFunction(params, "ERepro", "myERepro")
+ +

Your function will then be called instead of mizerERepro(), with the +same arguments.

See also

Other rate functions: @@ -252,7 +268,7 @@

Examp # Project with constant fishing effort for all gears for 20 time steps sim <- project(params, t_max = 20, effort = 0.5) # Get the energy at a particular time step -getERepro(params,sim@n[21,,],sim@n_pp[21,]) +getERepro(params, n = N(sim)[15, , ], n_pp = NResource(sim)[15, ], t = 15) }

-

Site built with pkgdown 1.5.1.9000.

+

Site built with pkgdown 1.5.1.

diff --git a/docs/reference/getEffort.html b/docs/reference/getEffort.html index d5c59b1b1..11db7902e 100644 --- a/docs/reference/getEffort.html +++ b/docs/reference/getEffort.html @@ -81,7 +81,7 @@ mizer - 2.0.2 + 2.0.3 @@ -222,7 +222,7 @@

Contents

-

Site built with pkgdown 1.5.1.9000.

+

Site built with pkgdown 1.5.1.

diff --git a/docs/reference/getEncounter.html b/docs/reference/getEncounter.html index 310e3f2dc..337a2448e 100644 --- a/docs/reference/getEncounter.html +++ b/docs/reference/getEncounter.html @@ -47,9 +47,7 @@ +weight \(w\) encounters food (grams/year)." /> @@ -81,7 +79,7 @@ mizer - 2.0.2 + 2.0.3 @@ -186,16 +184,15 @@

Get encounter rate

Returns the rate at which a predator of species \(i\) and -weight \(w\) encounters food (grams/year). -By default this function uses the function mizerEncounter() to calculate -the encounter rate, but this can be overruled via setRateFunction().

+weight \(w\) encounters food (grams/year).

getEncounter(
   params,
   n = initialN(params),
   n_pp = initialNResource(params),
-  n_other = initialNOther(params)
+  n_other = initialNOther(params),
+  t = 0
 )

Arguments

@@ -218,12 +215,16 @@

Arg

A list of abundances for other dynamical components of the ecosystem

+ + t +

The current time. Unused

+

Value

-

A two dimensional array (predator species x predator size) with the -encounter rates.

+

A named two dimensional array (predator species x predator size) with +the encounter rates.

Predation encounter

@@ -256,6 +257,20 @@

Details This is used by the project() function for performing simulations.

The function returns values also for sizes outside the size-range of the species. These values should not be used, as they are meaningless.

+

If your model contains additional components that you added with +setComponent() and for which you specified an encounter_fun function then +the encounters of these components will be included in the returned value.

+

Your own encounter function

+ + + +

By default getEncounter() calls mizerEncounter(). However you can +replace this with your own alternative encounter function. If +your function is called "myEncounter" then you register it in a MizerParams +object params with

params &lt;- setRateFunction(params, "Encounter", "myEncounter")
+ +

Your function will then be called instead of mizerEncounter(), with the +same arguments.

See also

Other rate functions: @@ -277,9 +292,7 @@

Examp params <- newMultispeciesParams(NS_species_params_gears, inter) # Run simulation with constant fishing effort for all gears for 20 years sim <- project(params, t_max = 20, effort = 0.5) -n <- sim@n[21, , ] -n_pp <- sim@n_pp[21, ] -getEncounter(params, n, n_pp) +getEncounter(params, n = finalN(sim), n_pp = finalNResource(sim), t = 20) }

-

Site built with pkgdown 1.5.1.9000.

+

Site built with pkgdown 1.5.1.

diff --git a/docs/reference/getFMort.html b/docs/reference/getFMort.html index d52f29b75..436d58526 100644 --- a/docs/reference/getFMort.html +++ b/docs/reference/getFMort.html @@ -83,7 +83,7 @@ mizer - 2.0.2 + 2.0.3 @@ -237,7 +237,7 @@

Note

gear), a vector of length equal to the number of gears (each gear has a different effort that is constant in time), or a single numeric value (each gear has the same effort that is constant in time). The order of gears in the -effort argument must be the same the same as in the MizerParams +effort argument must be the same as in the MizerParams object.

If the object argument is of class MizerSim then the effort slot of the MizerSim object is used and the effort argument is not @@ -270,16 +270,16 @@

Examp # Get the total fishing mortality when effort is different # between the four gears and changes with time: effort <- array(NA, dim = c(20,4)) -effort[,1] <- seq(from=0, to = 1, length=20) -effort[,2] <- seq(from=1, to = 0.5, length=20) -effort[,3] <- seq(from=1, to = 2, length=20) -effort[,4] <- seq(from=2, to = 1, length=20) -getFMort(params, effort=effort) +effort[, 1] <- seq(from = 0, to = 1, length = 20) +effort[, 2] <- seq(from = 1, to = 0.5, length = 20) +effort[, 3] <- seq(from = 1, to = 2, length = 20) +effort[, 4] <- seq(from = 2, to = 1, length = 20) +getFMort(params, effort = effort) # Get the total fishing mortality using the effort already held in a # MizerSim object. sim <- project(params, t_max = 20, effort = 0.5) getFMort(sim) -getFMort(sim, time_range = c(10,20)) +getFMort(sim, time_range = c(10, 20)) }
-

Site built with pkgdown 1.5.1.9000.

+

Site built with pkgdown 1.5.1.

diff --git a/docs/reference/getFMortGear.html b/docs/reference/getFMortGear.html index 6d513fa8f..e618fcc5f 100644 --- a/docs/reference/getFMortGear.html +++ b/docs/reference/getFMortGear.html @@ -47,8 +47,7 @@ +size at each time step in the effort argument (in units 1/year)." /> @@ -80,7 +79,7 @@ mizer - 2.0.2 + 2.0.3 @@ -185,8 +184,7 @@

Get the fishing mortality by time, gear, species and size

Calculates the fishing mortality rate \(F_{g,i,w}\) by gear, species and -size at each time step in the effort argument (in units 1/year). -Used by the project function to perform simulations.

+size at each time step in the effort argument (in units 1/year).

getFMortGear(object, effort, time_range)
@@ -256,19 +254,19 @@

Examp getFMortGear(params, effort = 1) # Get the fishing mortality when effort is different # between the four gears but constant in time: -getFMortGear(params, effort = c(0.5,1,1.5,0.75)) +getFMortGear(params, effort = c(0.5, 1, 1.5, 0.75)) # Get the fishing mortality when effort is different # between the four gears and changes with time: -effort <- array(NA, dim = c(20,4)) -effort[,1] <- seq(from=0, to = 1, length=20) -effort[,2] <- seq(from=1, to = 0.5, length=20) -effort[,3] <- seq(from=1, to = 2, length=20) -effort[,4] <- seq(from=2, to = 1, length=20) -getFMortGear(params, effort=effort) +effort <- array(NA, dim = c(20, 4)) +effort[, 1] <- seq(from=0, to = 1, length = 20) +effort[, 2] <- seq(from=1, to = 0.5, length = 20) +effort[, 3] <- seq(from=1, to = 2, length = 20) +effort[, 4] <- seq(from=2, to = 1, length = 20) +getFMortGear(params, effort = effort) # Get the fishing mortality using the effort already held in a MizerSim object. sim <- project(params, t_max = 20, effort = 0.5) getFMortGear(sim) -getFMortGear(sim, time_range=c(10,20)) +getFMortGear(sim, time_range = c(10, 20)) }
-

Site built with pkgdown 1.5.1.9000.

+

Site built with pkgdown 1.5.1.

diff --git a/docs/reference/getFeedingLevel.html b/docs/reference/getFeedingLevel.html index 6a225ab74..d988c5a96 100644 --- a/docs/reference/getFeedingLevel.html +++ b/docs/reference/getFeedingLevel.html @@ -47,7 +47,7 @@ @@ -80,7 +80,7 @@ mizer - 2.0.2 + 2.0.3 @@ -185,11 +185,11 @@

Get feeding level

Returns the feeding level. -By default this function uses the function mizerFeedingLevel() to calculate +By default this function uses mizerFeedingLevel() to calculate the feeding level, but this can be overruled via setRateFunction().

-
getFeedingLevel(object, n, n_pp, n_other, encounter, time_range, drop = FALSE)
+
getFeedingLevel(object, n, n_pp, n_other, time_range, drop = FALSE, ...)

Arguments

@@ -210,23 +210,22 @@

Arg

- - - - - + + + + +
n_other

A list of abundances for other dynamical components of the ecosystem

encounter

The encounter rate matrix (optional) of dimension no. -species x no. size bins. If not passed in, it is calculated internally -using getEncounter(). Only used if object -argument is of type MizerParams.

time_range

The time_range can be character or numeric.

A vector of times. Only the range of times is relevant, +i.e., all times between the smallest and largest will be selected. +The time_range can be character or numeric.

drop

If TRUE then any dimension of length 1 will be removed from the returned array.

...

Unused

Value

@@ -255,8 +254,17 @@

-

The feeding level is used in mizerEReproAndGrowth() and in -mizerPredRate().

+

Your own feeding level function

+ + + +

By default getFeedingLevel() calls mizerFeedingLevel(). However you can +replace this with your own alternative feeding level function. If +your function is called "myFeedingLevel" then you register it in a MizerParams +object params with

params &lt;- setRateFunction(params, "FeedingLevel", "myFeedingLevel")
+ +

Your function will then be called instead of mizerFeedingLevel(), with the +same arguments.

See also

Other rate functions: @@ -276,16 +284,14 @@

See a

Examples

if (FALSE) { params <- newMultispeciesParams(NS_species_params_gears, inter) -# With constant fishing effort for all gears for 20 time steps +# Get initial feeding level +fl <- getFeedingLevel(params) +# Project with constant fishing effort for all gears for 20 time steps sim <- project(params, t_max = 20, effort = 0.5) -# Get the feeding level at one time step -n <- sim@n[21,,] -n_pp <- sim@n_pp[21,] -fl <- getFeedingLevel(params,n,n_pp) # Get the feeding level at all saved time steps fl <- getFeedingLevel(sim) -# Get the feeding level for time 15 - 20 -fl <- getFeedingLevel(sim, time_range = c(15,20)) +# Get the feeding level for years 15 - 20 +fl <- getFeedingLevel(sim, time_range = c(15, 20)) }
-

Site built with pkgdown 1.5.1.9000.

+

Site built with pkgdown 1.5.1.

diff --git a/docs/reference/getGrowthCurves.html b/docs/reference/getGrowthCurves.html index d47126a07..f81af2de7 100644 --- a/docs/reference/getGrowthCurves.html +++ b/docs/reference/getGrowthCurves.html @@ -78,7 +78,7 @@ mizer - 2.0.2 + 2.0.3 @@ -248,7 +248,7 @@

Contents

-

Site built with pkgdown 1.5.1.9000.

+

Site built with pkgdown 1.5.1.

diff --git a/docs/reference/getM2.html b/docs/reference/getM2.html index 936a55013..e274ec9c9 100644 --- a/docs/reference/getM2.html +++ b/docs/reference/getM2.html @@ -78,7 +78,7 @@ mizer - 2.0.2 + 2.0.3 @@ -185,7 +185,7 @@

Alias for getPredMort

An alias provided for backward compatibility with mizer version <= 1.0

-
getM2(object, n, n_pp, n_other, pred_rate, time_range, drop = TRUE)
+
getM2(object, n, n_pp, n_other, time_range, drop = TRUE, ...)

Arguments

@@ -206,23 +206,22 @@

Arg

- - - - - + + + + +
n_other

A list of abundances for other dynamical components of the ecosystem

pred_rate

An array of predation rates of dimension no. sp x no. -community size bins x no. of size bins in whole spectra (i.e. community + -resource, the w_full slot). The array is optional. If it is not provided -it is calculated by the getPredRate() function.

time_range

The time_range can be character or numeric.

A vector of times. Only the range of times is relevant, +i.e., all times between the smallest and largest will be selected. +The time_range can be character or numeric.

drop

If TRUE then any dimension of length 1 will be removed from the returned array.

...

Unused

Value

@@ -233,6 +232,17 @@

Value

three dimensional array (time step x prey species x prey size) with the predation mortality calculated at every time step in the simulation. Dimensions may be dropped if they have length 1 unless drop = FALSE.

+

Your own predation mortality function

+ + + +

By default getPredMort() calls mizerPredMort(). However you can +replace this with your own alternative predation mortality function. If +your function is called "myPredMort" then you register it in a MizerParams +object params with

params &lt;- setRateFunction(params, "PredMort", "myPredMort")
+ +

Your function will then be called instead of mizerPredMort(), with the +same arguments.

See also

Other rate functions: @@ -255,13 +265,11 @@

Examp # With constant fishing effort for all gears for 20 time steps sim <- project(params, t_max = 20, effort = 0.5) # Get predation mortality at one time step -n <- sim@n[21,,] -n_pp <- sim@n_pp[21,] -getPredMort(params,n,n_pp) +getPredMort(params, n = N(sim)[15, , ], n_pp = NResource(sim)[15, ]) # Get predation mortality at all saved time steps getPredMort(sim) -# Get predation mortality over the time 15 - 20 -getPredMort(sim, time_range = c(15,20)) +# Get predation mortality over the years 15 - 20 +getPredMort(sim, time_range = c(15, 20)) }

-

Site built with pkgdown 1.5.1.9000.

+

Site built with pkgdown 1.5.1.

diff --git a/docs/reference/getM2Background.html b/docs/reference/getM2Background.html index 50dabdbeb..9b5feb9f8 100644 --- a/docs/reference/getM2Background.html +++ b/docs/reference/getM2Background.html @@ -78,7 +78,7 @@ mizer - 2.0.2 + 2.0.3 @@ -190,7 +190,8 @@

Alias for getResourceMort

n = initialN(params), n_pp = initialNResource(params), n_other = initialNOther(params), - pred_rate = getPredRate(params, n = n, n_pp = n_pp, n_other = n_other) + t = 0, + ... )

Arguments

@@ -214,20 +215,31 @@

Arg ecosystem

- pred_rate -

An array of predation rates of dimension no. sp x no. -community size bins x no. of size bins in whole spectra (i.e. community + -resource, the w_full slot). The array is optional. If it is not provided -it is calculated by the getPredRate() function.

+ t +

The time for which to do the calculation (Not used by standard +mizer rate functions but useful for extensions with time-dependent +parameters.)

+ + + ... +

Unused

Value

A vector of mortality rate by resource size.

-

Details

+

Your own resource mortality function

+ + + +

By default getResourceMort() calls mizerResourceMort(). However you can +replace this with your own alternative resource mortality function. If +your function is called "myResourceMort" then you register it in a MizerParams +object params with

params &lt;- setRateFunction(params, "ResourceMort", "myResourceMort")
-

Used by the project function for running size based simulations.

+

Your function will then be called instead of mizerResourceMort(), with the +same arguments.

See also

Other rate functions: @@ -250,9 +262,7 @@

Examp # With constant fishing effort for all gears for 20 time steps sim <- project(params, t_max = 20, effort = 0.5) # Get resource mortality at one time step -n <- sim@n[21,,] -n_pp <- sim@n_pp[21,] -getResourceMort(params,n,n_pp) +getResourceMort(params, n = N(sim)[15, , ], n_pp = NResource(sim)[15, ]) }

-

Site built with pkgdown 1.5.1.9000.

+

Site built with pkgdown 1.5.1.

diff --git a/docs/reference/getMeanMaxWeight.html b/docs/reference/getMeanMaxWeight.html index 618eb6584..f8cf325c4 100644 --- a/docs/reference/getMeanMaxWeight.html +++ b/docs/reference/getMeanMaxWeight.html @@ -84,7 +84,7 @@ mizer - 2.0.2 + 2.0.3 @@ -222,7 +222,7 @@

Arg ... -

Arguments passed on to get_size_range_array

+

Arguments passed on to get_size_range_array

min_w

Smallest weight in size range. Defaults to smallest weight in the model.

max_w

Largest weight in size range. Defaults to largest weight in the @@ -273,7 +273,7 @@

Contents

-

Site built with pkgdown 1.5.1.9000.

+

Site built with pkgdown 1.5.1.

diff --git a/docs/reference/getMeanWeight.html b/docs/reference/getMeanWeight.html index b8f92062d..81dfb4e26 100644 --- a/docs/reference/getMeanWeight.html +++ b/docs/reference/getMeanWeight.html @@ -83,7 +83,7 @@ mizer - 2.0.2 + 2.0.3 @@ -215,7 +215,7 @@

Arg ... -

Arguments passed on to get_size_range_array

+

Arguments passed on to get_size_range_array

min_w

Smallest weight in size range. Defaults to smallest weight in the model.

max_w

Largest weight in size range. Defaults to largest weight in the @@ -262,7 +262,7 @@

Contents

-

Site built with pkgdown 1.5.1.9000.

+

Site built with pkgdown 1.5.1.

diff --git a/docs/reference/getMort.html b/docs/reference/getMort.html index 004a5d1a5..c6a48658d 100644 --- a/docs/reference/getMort.html +++ b/docs/reference/getMort.html @@ -80,7 +80,7 @@ mizer - 2.0.2 + 2.0.3 @@ -195,8 +195,8 @@

Get total mortality rate

n_pp = initialNResource(params), n_other = initialNOther(params), effort = getInitialEffort(params), - f_mort = getFMort(params, effort), - pred_mort = getPredMort(params, n = n, n_pp = n_pp, n_other = n_other) + t = 0, + ... )

Arguments

@@ -225,22 +225,37 @@

Arg effort value which is used for all gears.

- f_mort -

A two dimensional array (species x size) of fishing mortality -(optional).If not supplied is calculated using the getFMort() -function.

+ t +

The time for which to do the calculation (Not used by standard +mizer rate functions but useful for extensions with time-dependent +parameters.)

- pred_mort -

A two dimensional array of predation mortality (optional). Has -dimensions no. sp x no. size bins in the community. If not supplied is -calculated using the getPredMort() function.

+ ... +

Unused

Value

A two dimensional array (prey species x prey size).

+

Details

+ +

If your model contains additional components that you added with +setComponent() and for which you specified a mort_fun function then +the mortality inflicted by these components will be included in the returned +value.

+

Your own mortality function

+ + + +

By default getMort() calls mizerMort(). However you can +replace this with your own alternative mortality function. If +your function is called "myMort" then you register it in a MizerParams +object params with

params &lt;- setRateFunction(params, "Mort", "myMort")
+ +

Your function will then be called instead of mizerMort(), with the +same arguments.

See also

getPredMort(), getFMort()

@@ -264,7 +279,8 @@

Examp # Project with constant fishing effort for all gears for 20 time steps sim <- project(params, t_max = 20, effort = 0.5) # Get the total mortality at a particular time step -getMort(params,sim@n[21,,],sim@n_pp[21,],effort=0.5) +getMort(params, n = N(sim)[15, , ], n_pp = NResource(sim)[15, ], + t = 15, effort = 0.5) }

-

Site built with pkgdown 1.5.1.9000.

+

Site built with pkgdown 1.5.1.

diff --git a/docs/reference/getN.html b/docs/reference/getN.html index e7c8821fc..f5f045cde 100644 --- a/docs/reference/getN.html +++ b/docs/reference/getN.html @@ -82,7 +82,7 @@ mizer - 2.0.2 + 2.0.3 @@ -204,7 +204,7 @@

Arg ... -

Arguments passed on to get_size_range_array

+

Arguments passed on to get_size_range_array

min_w

Smallest weight in size range. Defaults to smallest weight in the model.

max_w

Largest weight in size range. Defaults to largest weight in the @@ -254,7 +254,7 @@

Contents

-

Site built with pkgdown 1.5.1.9000.

+

Site built with pkgdown 1.5.1.

diff --git a/docs/reference/getParams.html b/docs/reference/getParams.html index 81be16f2e..8a418217c 100644 --- a/docs/reference/getParams.html +++ b/docs/reference/getParams.html @@ -78,7 +78,7 @@ mizer - 2.0.2 + 2.0.3 @@ -215,7 +215,7 @@

Contents

-

Site built with pkgdown 1.5.1.9000.

+

Site built with pkgdown 1.5.1.

diff --git a/docs/reference/getPhiPrey.html b/docs/reference/getPhiPrey.html index 19e9bf64f..0c407b9dc 100644 --- a/docs/reference/getPhiPrey.html +++ b/docs/reference/getPhiPrey.html @@ -80,7 +80,7 @@ mizer - 2.0.2 + 2.0.3 @@ -245,7 +245,7 @@

Contents

-

Site built with pkgdown 1.5.1.9000.

+

Site built with pkgdown 1.5.1.

diff --git a/docs/reference/getPredKernel.html b/docs/reference/getPredKernel.html index b9ad7791a..3c7b01e0a 100644 --- a/docs/reference/getPredKernel.html +++ b/docs/reference/getPredKernel.html @@ -80,7 +80,7 @@ mizer - 2.0.2 + 2.0.3 @@ -222,7 +222,7 @@

Contents

-

Site built with pkgdown 1.5.1.9000.

+

Site built with pkgdown 1.5.1.

diff --git a/docs/reference/getPredMort.html b/docs/reference/getPredMort.html index 2ca9bdd53..5d4dd3127 100644 --- a/docs/reference/getPredMort.html +++ b/docs/reference/getPredMort.html @@ -80,7 +80,7 @@ mizer - 2.0.2 + 2.0.3 @@ -189,7 +189,7 @@

Get total predation mortality rate

$$\mu_{p.i}(w_p) = \sum_j {\tt pred\_rate}_j(w_p)\, \theta_{ji}.$$

-
getPredMort(object, n, n_pp, n_other, pred_rate, time_range, drop = TRUE)
+
getPredMort(object, n, n_pp, n_other, time_range, drop = TRUE, ...)

Arguments

@@ -210,23 +210,22 @@

Arg

- - - - - + + + + +
n_other

A list of abundances for other dynamical components of the ecosystem

pred_rate

An array of predation rates of dimension no. sp x no. -community size bins x no. of size bins in whole spectra (i.e. community + -resource, the w_full slot). The array is optional. If it is not provided -it is calculated by the getPredRate() function.

time_range

The time_range can be character or numeric.

A vector of times. Only the range of times is relevant, +i.e., all times between the smallest and largest will be selected. +The time_range can be character or numeric.

drop

If TRUE then any dimension of length 1 will be removed from the returned array.

...

Unused

Value

@@ -237,6 +236,17 @@

Value

three dimensional array (time step x prey species x prey size) with the predation mortality calculated at every time step in the simulation. Dimensions may be dropped if they have length 1 unless drop = FALSE.

+

Your own predation mortality function

+ + + +

By default getPredMort() calls mizerPredMort(). However you can +replace this with your own alternative predation mortality function. If +your function is called "myPredMort" then you register it in a MizerParams +object params with

params &lt;- setRateFunction(params, "PredMort", "myPredMort")
+ +

Your function will then be called instead of mizerPredMort(), with the +same arguments.

See also

Other rate functions: @@ -259,13 +269,11 @@

Examp # With constant fishing effort for all gears for 20 time steps sim <- project(params, t_max = 20, effort = 0.5) # Get predation mortality at one time step -n <- sim@n[21,,] -n_pp <- sim@n_pp[21,] -getPredMort(params,n,n_pp) +getPredMort(params, n = N(sim)[15, , ], n_pp = NResource(sim)[15, ]) # Get predation mortality at all saved time steps getPredMort(sim) -# Get predation mortality over the time 15 - 20 -getPredMort(sim, time_range = c(15,20)) +# Get predation mortality over the years 15 - 20 +getPredMort(sim, time_range = c(15, 20)) }

-

Site built with pkgdown 1.5.1.9000.

+

Site built with pkgdown 1.5.1.

diff --git a/docs/reference/getPredRate.html b/docs/reference/getPredRate.html index d86f76d10..ccb79c74e 100644 --- a/docs/reference/getPredRate.html +++ b/docs/reference/getPredRate.html @@ -50,7 +50,7 @@ a given size \(w\) is killed by predators from species \(j\). In formulas $${\tt pred\_rate}_j(w_p) = \int \phi_j(w,w_p) (1-f_j(w)) \gamma_j(w) N_j(w) \, dw.$$ -This potential rate is used in the function getPredMort() to +This potential rate is used in getPredMort() to calculate the realised predation mortality rate on the prey individual." /> @@ -83,7 +83,7 @@ mizer - 2.0.2 + 2.0.3 @@ -191,7 +191,7 @@

Get predation rate

a given size \(w\) is killed by predators from species \(j\). In formulas $${\tt pred\_rate}_j(w_p) = \int \phi_j(w,w_p) (1-f_j(w)) \gamma_j(w) N_j(w) \, dw.$$ -This potential rate is used in the function getPredMort() to +This potential rate is used in getPredMort() to calculate the realised predation mortality rate on the prey individual.

@@ -200,7 +200,8 @@

Get predation rate

n = initialN(params), n_pp = initialNResource(params), n_other = initialNOther(params), - feeding_level = getFeedingLevel(params, n = n, n_pp = n_pp, n_other = n_other) + t = 0, + ... )

Arguments

@@ -224,10 +225,14 @@

Arg ecosystem

- feeding_level -

The current feeding level (optional). A matrix of size -no. species x no. size bins. If not supplied, is calculated internally -using the getFeedingLevel() function.

+ t +

The time for which to do the calculation (Not used by standard +mizer rate functions but useful for extensions with time-dependent +parameters.)

+ + + ... +

Unused

@@ -235,6 +240,17 @@

Value

A two dimensional array (predator species x prey size), where the prey size runs over fish community plus resource spectrum.

+

Your own predation rate function

+ + + +

By default getPredRate() calls mizerPredRate(). However you can +replace this with your own alternative predation rate function. If +your function is called "myPredRate" then you register it in a MizerParams +object params with

params &lt;- setRateFunction(params, "PredRate", "myPredRate")
+ +

Your function will then be called instead of mizerPredRate(), with +the same arguments.

See also

Other rate functions: @@ -257,9 +273,7 @@

Examp # With constant fishing effort for all gears for 20 time steps sim <- project(params, t_max = 20, effort = 0.5) # Get the feeding level at one time step -n <- sim@n[21,,] -n_pp <- sim@n_pp[21,] -getPredRate(params,n,n_pp) +getPredRate(params, n = N(sim)[15, , ], n_pp = NResource(sim)[15, ]) }

-

Site built with pkgdown 1.5.1.9000.

+

Site built with pkgdown 1.5.1.

diff --git a/docs/reference/getProportionOfLargeFish.html b/docs/reference/getProportionOfLargeFish.html index df1fcbaec..8e55d4187 100644 --- a/docs/reference/getProportionOfLargeFish.html +++ b/docs/reference/getProportionOfLargeFish.html @@ -85,7 +85,7 @@ mizer - 2.0.2 + 2.0.3 @@ -237,7 +237,7 @@

Arg ... -

Arguments passed on to get_size_range_array

+

Arguments passed on to get_size_range_array

min_w

Smallest weight in size range. Defaults to smallest weight in the model.

max_w

Largest weight in size range. Defaults to largest weight in the @@ -287,7 +287,7 @@

Contents

-

Site built with pkgdown 1.5.1.9000.

+

Site built with pkgdown 1.5.1.

diff --git a/docs/reference/getRDD.html b/docs/reference/getRDD.html index 18af7e473..475671165 100644 --- a/docs/reference/getRDD.html +++ b/docs/reference/getRDD.html @@ -84,7 +84,7 @@ mizer - 2.0.2 + 2.0.3 @@ -202,7 +202,8 @@

Get density dependent reproduction rate

n = initialN(params), n_pp = initialNResource(params), n_other = initialNOther(params), - rdi = getRDI(params, n = n, n_pp = n_pp, n_other = n_other) + t = 0, + rdi = getRDI(params, n = n, n_pp = n_pp, n_other = n_other, t = t) )

Arguments

@@ -224,6 +225,12 @@

Arg n_other

A list of abundances for other dynamical components of the ecosystem

+ + + t +

The time for which to do the calculation (Not used by standard +mizer rate functions but useful for extensions with time-dependent +parameters.)

rdi @@ -259,7 +266,7 @@

Examp # Project with constant fishing effort for all gears for 20 time steps sim <- project(params, t_max = 20, effort = 0.5) # Get the rate at a particular time step -getRDD(params,sim@n[21,,],sim@n_pp[21,]) +getRDD(params, n = N(sim)[15, , ], n_pp = NResource(sim)[15, ], t = 15) }
-

Site built with pkgdown 1.5.1.9000.

+

Site built with pkgdown 1.5.1.

diff --git a/docs/reference/getRDI.html b/docs/reference/getRDI.html index 9368a15b2..4f115b678 100644 --- a/docs/reference/getRDI.html +++ b/docs/reference/getRDI.html @@ -81,7 +81,7 @@ mizer - 2.0.2 + 2.0.3 @@ -196,7 +196,8 @@

Get density independent rate of egg production

n = initialN(params), n_pp = initialNResource(params), n_other = initialNOther(params), - e_repro = getERepro(params, n = n, n_pp = n_pp, n_other = n_other) + t = 0, + ... )

Arguments

@@ -220,10 +221,14 @@

Arg ecosystem

- e_repro -

The energy available for reproduction (optional). A matrix of -size no. species x no. size bins. If not supplied, is calculated internally -using getERepro().

+ t +

The time for which to do the calculation (Not used by standard +mizer rate functions but useful for extensions with time-dependent +parameters.)

+ + + ... +

Unused

@@ -253,7 +258,7 @@

Examp # Project with constant fishing effort for all gears for 20 time steps sim <- project(params, t_max = 20, effort = 0.5) # Get the density-independent reproduction rate at a particular time step -getRDI(params,sim@n[21,,],sim@n_pp[21,]) +getRDI(params, n = N(sim)[15, , ], n_pp = NResource(sim)[15, ], t = 15) }
-

Site built with pkgdown 1.5.1.9000.

+

Site built with pkgdown 1.5.1.

diff --git a/docs/reference/getResourceMort.html b/docs/reference/getResourceMort.html index 00c8667c1..bdcd45f89 100644 --- a/docs/reference/getResourceMort.html +++ b/docs/reference/getResourceMort.html @@ -79,7 +79,7 @@ mizer - 2.0.2 + 2.0.3 @@ -192,7 +192,8 @@

Get predation mortality rate for resource

n = initialN(params), n_pp = initialNResource(params), n_other = initialNOther(params), - pred_rate = getPredRate(params, n = n, n_pp = n_pp, n_other = n_other) + t = 0, + ... )

Arguments

@@ -216,20 +217,31 @@

Arg ecosystem

- pred_rate -

An array of predation rates of dimension no. sp x no. -community size bins x no. of size bins in whole spectra (i.e. community + -resource, the w_full slot). The array is optional. If it is not provided -it is calculated by the getPredRate() function.

+ t +

The time for which to do the calculation (Not used by standard +mizer rate functions but useful for extensions with time-dependent +parameters.)

+ + + ... +

Unused

Value

A vector of mortality rate by resource size.

-

Details

+

Your own resource mortality function

+ + + +

By default getResourceMort() calls mizerResourceMort(). However you can +replace this with your own alternative resource mortality function. If +your function is called "myResourceMort" then you register it in a MizerParams +object params with

params &lt;- setRateFunction(params, "ResourceMort", "myResourceMort")
-

Used by the project function for running size based simulations.

+

Your function will then be called instead of mizerResourceMort(), with the +same arguments.

See also

Other rate functions: @@ -252,9 +264,7 @@

Examp # With constant fishing effort for all gears for 20 time steps sim <- project(params, t_max = 20, effort = 0.5) # Get resource mortality at one time step -n <- sim@n[21,,] -n_pp <- sim@n_pp[21,] -getResourceMort(params,n,n_pp) +getResourceMort(params, n = N(sim)[15, , ], n_pp = NResource(sim)[15, ]) }

-

Site built with pkgdown 1.5.1.9000.

+

Site built with pkgdown 1.5.1.

diff --git a/docs/reference/getSSB.html b/docs/reference/getSSB.html index 85db65edb..b4c4bc2a8 100644 --- a/docs/reference/getSSB.html +++ b/docs/reference/getSSB.html @@ -80,7 +80,7 @@ mizer - 2.0.2 + 2.0.3 @@ -235,7 +235,7 @@

Contents

-

Site built with pkgdown 1.5.1.9000.

+

Site built with pkgdown 1.5.1.

diff --git a/docs/reference/getTimes.html b/docs/reference/getTimes.html index 77f437e1d..30220bd46 100644 --- a/docs/reference/getTimes.html +++ b/docs/reference/getTimes.html @@ -78,7 +78,7 @@ mizer - 2.0.2 + 2.0.3 @@ -216,7 +216,7 @@

Contents

-

Site built with pkgdown 1.5.1.9000.

+

Site built with pkgdown 1.5.1.

diff --git a/docs/reference/getYield.html b/docs/reference/getYield.html index 30084992e..c3166f404 100644 --- a/docs/reference/getYield.html +++ b/docs/reference/getYield.html @@ -79,7 +79,7 @@ mizer - 2.0.2 + 2.0.3 @@ -233,7 +233,7 @@

Contents

-

Site built with pkgdown 1.5.1.9000.

+

Site built with pkgdown 1.5.1.

diff --git a/docs/reference/getYieldGear.html b/docs/reference/getYieldGear.html index b644265a2..5640d56bf 100644 --- a/docs/reference/getYieldGear.html +++ b/docs/reference/getYieldGear.html @@ -79,7 +79,7 @@ mizer - 2.0.2 + 2.0.3 @@ -234,7 +234,7 @@

Contents

-

Site built with pkgdown 1.5.1.9000.

+

Site built with pkgdown 1.5.1.

diff --git a/docs/reference/getZ.html b/docs/reference/getZ.html index db266b153..cc2cea032 100644 --- a/docs/reference/getZ.html +++ b/docs/reference/getZ.html @@ -78,7 +78,7 @@ mizer - 2.0.2 + 2.0.3 @@ -191,8 +191,8 @@

Alias for getMort

n_pp = initialNResource(params), n_other = initialNOther(params), effort = getInitialEffort(params), - f_mort = getFMort(params, effort), - pred_mort = getPredMort(params, n = n, n_pp = n_pp, n_other = n_other) + t = 0, + ... )

Arguments

@@ -221,22 +221,37 @@

Arg effort value which is used for all gears.

- f_mort -

A two dimensional array (species x size) of fishing mortality -(optional).If not supplied is calculated using the getFMort() -function.

+ t +

The time for which to do the calculation (Not used by standard +mizer rate functions but useful for extensions with time-dependent +parameters.)

- pred_mort -

A two dimensional array of predation mortality (optional). Has -dimensions no. sp x no. size bins in the community. If not supplied is -calculated using the getPredMort() function.

+ ... +

Unused

Value

A two dimensional array (prey species x prey size).

+

Details

+ +

If your model contains additional components that you added with +setComponent() and for which you specified a mort_fun function then +the mortality inflicted by these components will be included in the returned +value.

+

Your own mortality function

+ + + +

By default getMort() calls mizerMort(). However you can +replace this with your own alternative mortality function. If +your function is called "myMort" then you register it in a MizerParams +object params with

params &lt;- setRateFunction(params, "Mort", "myMort")
+ +

Your function will then be called instead of mizerMort(), with the +same arguments.

See also

getPredMort(), getFMort()

@@ -260,7 +275,8 @@

Examp # Project with constant fishing effort for all gears for 20 time steps sim <- project(params, t_max = 20, effort = 0.5) # Get the total mortality at a particular time step -getMort(params,sim@n[21,,],sim@n_pp[21,],effort=0.5) +getMort(params, n = N(sim)[15, , ], n_pp = NResource(sim)[15, ], + t = 15, effort = 0.5) }

-

Site built with pkgdown 1.5.1.9000.

+

Site built with pkgdown 1.5.1.

diff --git a/docs/reference/get_gamma_default.html b/docs/reference/get_gamma_default.html index 2ffbdddac..88a4c992a 100644 --- a/docs/reference/get_gamma_default.html +++ b/docs/reference/get_gamma_default.html @@ -80,7 +80,7 @@ mizer - 2.0.2 + 2.0.3 @@ -219,7 +219,7 @@

Contents

-

Site built with pkgdown 1.5.1.9000.

+

Site built with pkgdown 1.5.1.

diff --git a/docs/reference/get_h_default.html b/docs/reference/get_h_default.html index ddab64d98..9bf188021 100644 --- a/docs/reference/get_h_default.html +++ b/docs/reference/get_h_default.html @@ -83,7 +83,7 @@ mizer - 2.0.2 + 2.0.3 @@ -225,7 +225,7 @@

Contents

-

Site built with pkgdown 1.5.1.9000.

+

Site built with pkgdown 1.5.1.

diff --git a/docs/reference/get_initial_n.html b/docs/reference/get_initial_n.html index 83bbf2874..c0095045d 100644 --- a/docs/reference/get_initial_n.html +++ b/docs/reference/get_initial_n.html @@ -81,7 +81,7 @@ mizer - 2.0.2 + 2.0.3 @@ -235,7 +235,7 @@

Contents

-

Site built with pkgdown 1.5.1.9000.

+

Site built with pkgdown 1.5.1.

diff --git a/docs/reference/get_ks_default.html b/docs/reference/get_ks_default.html index d6edb87a6..4ed08b7df 100644 --- a/docs/reference/get_ks_default.html +++ b/docs/reference/get_ks_default.html @@ -81,7 +81,7 @@ mizer - 2.0.2 + 2.0.3 @@ -221,7 +221,7 @@

Contents

-

Site built with pkgdown 1.5.1.9000.

+

Site built with pkgdown 1.5.1.

diff --git a/docs/reference/get_phi.html b/docs/reference/get_phi.html index 30be536ff..80c80c7e8 100644 --- a/docs/reference/get_phi.html +++ b/docs/reference/get_phi.html @@ -81,7 +81,7 @@ mizer - 2.0.2 + 2.0.3 @@ -227,7 +227,7 @@

Contents

-

Site built with pkgdown 1.5.1.9000.

+

Site built with pkgdown 1.5.1.

diff --git a/docs/reference/get_required_reproduction.html b/docs/reference/get_required_reproduction.html index 3ff38cd3b..481b03819 100644 --- a/docs/reference/get_required_reproduction.html +++ b/docs/reference/get_required_reproduction.html @@ -78,7 +78,7 @@ mizer - 2.0.2 + 2.0.3 @@ -215,7 +215,7 @@

Contents

-

Site built with pkgdown 1.5.1.9000.

+

Site built with pkgdown 1.5.1.

diff --git a/docs/reference/get_size_range_array.html b/docs/reference/get_size_range_array.html index 16808a0b5..9114b0417 100644 --- a/docs/reference/get_size_range_array.html +++ b/docs/reference/get_size_range_array.html @@ -80,7 +80,7 @@ mizer - 2.0.2 + 2.0.3 @@ -263,7 +263,7 @@

Contents

-

Site built with pkgdown 1.5.1.9000.

+

Site built with pkgdown 1.5.1.

diff --git a/docs/reference/get_time_elements.html b/docs/reference/get_time_elements.html index 89cbbaf1b..64b854111 100644 --- a/docs/reference/get_time_elements.html +++ b/docs/reference/get_time_elements.html @@ -79,7 +79,7 @@ mizer - 2.0.2 + 2.0.3 @@ -198,15 +198,21 @@

Arg time_range -

The time_range can be character or numeric.

+

A vector of times. Only the range of times is relevant, +i.e., all times between the smallest and largest will be selected. +The time_range can be character or numeric.

slot_name -

Necessary to include a slot_name argument because the effort -and abundance slots have different time dimensions

+

Obsolete. Was only needed in early versions of mizer where +the effort slot could have different time dimension from the other slots.

+

Value

+ +

Named boolean vector indicating for each time whether it is included +in the range or not.

-

Site built with pkgdown 1.5.1.9000.

+

Site built with pkgdown 1.5.1.

diff --git a/docs/reference/idxFinalT.html b/docs/reference/idxFinalT.html index 550f93e3e..97e0332ea 100644 --- a/docs/reference/idxFinalT.html +++ b/docs/reference/idxFinalT.html @@ -78,7 +78,7 @@ mizer - 2.0.2 + 2.0.3 @@ -229,7 +229,7 @@

Contents

-

Site built with pkgdown 1.5.1.9000.

+

Site built with pkgdown 1.5.1.

diff --git a/docs/reference/index.html b/docs/reference/index.html index 288c6b15c..8e9dd21fa 100644 --- a/docs/reference/index.html +++ b/docs/reference/index.html @@ -77,7 +77,7 @@ mizer - 2.0.2 + 2.0.3 @@ -993,8 +993,7 @@

validSpeciesParams()

-

Check validity of species parameters and set defaults for missing but -required parameters

+

Validate species parameter data frame

@@ -1263,7 +1262,7 @@

Contents

-

Site built with pkgdown 1.5.1.9000.

+

Site built with pkgdown 1.5.1.

diff --git a/docs/reference/indicator_functions.html b/docs/reference/indicator_functions.html index 7b25f5779..3beac7482 100644 --- a/docs/reference/indicator_functions.html +++ b/docs/reference/indicator_functions.html @@ -79,7 +79,7 @@ mizer - 2.0.2 + 2.0.3 @@ -202,7 +202,7 @@

Details

See also

- +
-

Site built with pkgdown 1.5.1.9000.

+

Site built with pkgdown 1.5.1.

diff --git a/docs/reference/initialN-set.html b/docs/reference/initialN-set.html index 2f054f519..27448a2a9 100644 --- a/docs/reference/initialN-set.html +++ b/docs/reference/initialN-set.html @@ -78,7 +78,7 @@ mizer - 2.0.2 + 2.0.3 @@ -223,7 +223,7 @@

Contents

-

Site built with pkgdown 1.5.1.9000.

+

Site built with pkgdown 1.5.1.

diff --git a/docs/reference/initialNOther-set.html b/docs/reference/initialNOther-set.html index d4037de45..d09d642a5 100644 --- a/docs/reference/initialNOther-set.html +++ b/docs/reference/initialNOther-set.html @@ -78,7 +78,7 @@ mizer - 2.0.2 + 2.0.3 @@ -219,7 +219,7 @@

Contents

-

Site built with pkgdown 1.5.1.9000.

+

Site built with pkgdown 1.5.1.

diff --git a/docs/reference/initialNResource-set.html b/docs/reference/initialNResource-set.html index 4d1bc001a..21fae6d08 100644 --- a/docs/reference/initialNResource-set.html +++ b/docs/reference/initialNResource-set.html @@ -78,7 +78,7 @@ mizer - 2.0.2 + 2.0.3 @@ -223,7 +223,7 @@

Contents

-

Site built with pkgdown 1.5.1.9000.

+

Site built with pkgdown 1.5.1.

diff --git a/docs/reference/inter.html b/docs/reference/inter.html index 23c5e2056..0f000179e 100644 --- a/docs/reference/inter.html +++ b/docs/reference/inter.html @@ -78,7 +78,7 @@ mizer - 2.0.2 + 2.0.3 @@ -209,7 +209,7 @@

Contents

-

Site built with pkgdown 1.5.1.9000.

+

Site built with pkgdown 1.5.1.

diff --git a/docs/reference/knife_edge.html b/docs/reference/knife_edge.html index 2d185737a..de0859138 100644 --- a/docs/reference/knife_edge.html +++ b/docs/reference/knife_edge.html @@ -79,7 +79,7 @@ mizer - 2.0.2 + 2.0.3 @@ -222,7 +222,7 @@

Contents

-

Site built with pkgdown 1.5.1.9000.

+

Site built with pkgdown 1.5.1.

diff --git a/docs/reference/log_breaks.html b/docs/reference/log_breaks.html index 13c2cc812..91a04a046 100644 --- a/docs/reference/log_breaks.html +++ b/docs/reference/log_breaks.html @@ -79,7 +79,7 @@ mizer - 2.0.2 + 2.0.3 @@ -222,7 +222,7 @@

Contents

-

Site built with pkgdown 1.5.1.9000.

+

Site built with pkgdown 1.5.1.

diff --git a/docs/reference/lognormal_pred_kernel.html b/docs/reference/lognormal_pred_kernel.html index caa23d435..ea3152fcb 100644 --- a/docs/reference/lognormal_pred_kernel.html +++ b/docs/reference/lognormal_pred_kernel.html @@ -79,7 +79,7 @@ mizer - 2.0.2 + 2.0.3 @@ -240,7 +240,7 @@

Contents

-

Site built with pkgdown 1.5.1.9000.

+

Site built with pkgdown 1.5.1.

diff --git a/docs/reference/mizer.html b/docs/reference/mizer-package.html similarity index 87% rename from docs/reference/mizer.html rename to docs/reference/mizer-package.html index c14279e4b..e867e79bb 100644 --- a/docs/reference/mizer.html +++ b/docs/reference/mizer-package.html @@ -6,7 +6,7 @@ -mizer: Multi-species size-based modelling in R — mizer • mizer +mizer: Multi-species size-based modelling in R — mizer-package • mizer @@ -45,7 +45,7 @@ - + @@ -79,7 +79,7 @@ mizer - 2.0.2 + 2.0.3 @@ -178,8 +178,8 @@
@@ -192,7 +192,7 @@

mizer: Multi-species size-based modelling in R

Details

Using mizer is relatively simple. There are three main stages:

    -
  1. Setting the model parameters. This is done by creating an object of +

  2. Setting the model parameters. This is done by creating an object of class MizerParams. This includes model parameters such as the life history parameters of each species, and the range of the size spectrum. There are several setup functions that help to create a MizerParams objects @@ -201,17 +201,26 @@

    Details
  3. newTraitParams()

  4. newMultispeciesParams()

  5. -
  6. Running a simulation. This is done by calling the +

  7. Running a simulation. This is done by calling the project() function with the model parameters. This produces an object of MizerSim that contains the results of the simulation.

  8. -
  9. Exploring results. After a simulation has been run, the results can be -explored using a range of plotting_functions and -summary_functions.

  10. +
  11. Exploring results. After a simulation has been run, the results can be +explored using a range of plotting_functions, summary_functions and +indicator_functions.

See the mizer website for full details of the principles behind mizer and how the package can be used to perform size-based modelling.

+

See also

+ +
-

Site built with pkgdown 1.5.1.9000.

+

Site built with pkgdown 1.5.1.

diff --git a/docs/reference/mizerEGrowth.html b/docs/reference/mizerEGrowth.html index a90b9bd01..b581aacfb 100644 --- a/docs/reference/mizerEGrowth.html +++ b/docs/reference/mizerEGrowth.html @@ -48,7 +48,10 @@ +accounted for. Used by project() for performing simulations. +You would not usually call this +function directly but instead use getEGrowth(), which then calls this +function unless an alternative function has been registered, see below." /> @@ -80,7 +83,7 @@ mizer - 2.0.2 + 2.0.3
@@ -186,10 +189,13 @@

Get energy rate available for growth needed to project standard mizer model<

Calculates the energy rate \(g_i(w)\) (grams/year) available by species and size for growth after metabolism, movement and reproduction have been -accounted for. Used by project() for performing simulations.

+accounted for. Used by project() for performing simulations. +You would not usually call this +function directly but instead use getEGrowth(), which then calls this +function unless an alternative function has been registered, see below.

-
mizerEGrowth(params, n, n_pp, n_other, e_repro, e, ...)
+
mizerEGrowth(params, n, n_pp, n_other, t, e_repro, e, ...)

Arguments

@@ -210,30 +216,43 @@

Arg

+ + + + - - - +
n_other

A list of abundances for other dynamical components of the ecosystem

t

The time for which to do the calculation (Not used by standard +mizer rate functions but useful for extensions with time-dependent +parameters.)

e_repro

The energy available for reproduction (optional, although if -specified, e must also be specified). A matrix of size no. species x no. -size bins. If not supplied, is calculated internally using +

The energy available for reproduction as calculated by getERepro().

e

The energy available for reproduction and growth (optional, although -if specified, e_repro must also be specified). A matrix of size no. -species x no. size bins. If not supplied, is calculated internally using +

The energy available for reproduction and growth as calculated by getEReproAndGrowth().

...

Optional arguments for rate functions.

Unused

Value

A two dimensional array (species x size) with the growth rates.

+

Your own growth rate function

+ + + +

By default getEGrowth() calls mizerEGrowth(). However you can +replace this with your own alternative growth rate function. If +your function is called "myEGrowth" then you register it in a MizerParams +object params with

params &lt;- setRateFunction(params, "EGrowth", "myEGrowth")
+ +

Your function will then be called instead of mizerEGrowth(), with the +same arguments.

See also

Other mizer rate functions: @@ -265,7 +284,7 @@

Contents

-

Site built with pkgdown 1.5.1.9000.

+

Site built with pkgdown 1.5.1.

diff --git a/docs/reference/mizerERepro.html b/docs/reference/mizerERepro.html index 3c77902bd..778b7f384 100644 --- a/docs/reference/mizerERepro.html +++ b/docs/reference/mizerERepro.html @@ -49,7 +49,10 @@ +growth and metabolism have been accounted for. +You would not usually call this +function directly but instead use getERepro(), which then calls this +function unless an alternative function has been registered, see below." /> @@ -81,7 +84,7 @@ mizer - 2.0.2 + 2.0.3 @@ -187,10 +190,13 @@

Get energy rate available for reproduction needed to project standard mizer

Calculates the energy rate (grams/year) available for reproduction after -growth and metabolism have been accounted for.

+growth and metabolism have been accounted for. +You would not usually call this +function directly but instead use getERepro(), which then calls this +function unless an alternative function has been registered, see below.

-
mizerERepro(params, n, n_pp, n_other, e, ...)
+
mizerERepro(params, n, n_pp, n_other, t, e, ...)

Arguments

@@ -211,6 +217,12 @@

Arg

+ + + + @@ -219,7 +231,7 @@

Arg

- +
n_other

A list of abundances for other dynamical components of the ecosystem

t

The time for which to do the calculation (Not used by standard +mizer rate functions but useful for extensions with time-dependent +parameters.)

e
...

Optional arguments for rate functions.

Unused

@@ -232,6 +244,17 @@

Value

and \(\psi_i(w)\) is the proportion of this energy that is used for reproduction. This proportion is taken from the params object and is set with setReproduction().

+

Your own reproduction rate function

+ + + +

By default getERepro() calls mizerERepro(). However you can +replace this with your own alternative reproduction rate function. If +your function is called "myERepro" then you register it in a MizerParams +object params with

params &lt;- setRateFunction(params, "ERepro", "myERepro")
+ +

Your function will then be called instead of mizerERepro(), with the +same arguments.

See also

Other mizer rate functions: @@ -263,7 +286,7 @@

Contents

-

Site built with pkgdown 1.5.1.9000.

+

Site built with pkgdown 1.5.1.

diff --git a/docs/reference/mizerEReproAndGrowth.html b/docs/reference/mizerEReproAndGrowth.html index e1e1ef913..d81847e4e 100644 --- a/docs/reference/mizerEReproAndGrowth.html +++ b/docs/reference/mizerEReproAndGrowth.html @@ -48,9 +48,13 @@ - +metabolism and movement have been accounted for. +You would not usually call this function directly but instead use +getEReproAndGrowth(), which then calls this function unless an alternative +function has been registered, see below." /> @@ -82,7 +86,7 @@ mizer - 2.0.2 + 2.0.3 @@ -187,12 +191,25 @@

Get energy rate available for reproduction and growth needed to project
-

Calculates the energy rate \(E_{r.i}(w)\) (grams/year) available to an +

Calculates the energy rate +\(E_{r.i}(w)\) (grams/year) available to an individual of species i and size w for reproduction and growth after -metabolism and movement have been accounted for.

+metabolism and movement have been accounted for. +You would not usually call this function directly but instead use +getEReproAndGrowth(), which then calls this function unless an alternative +function has been registered, see below.

-
mizerEReproAndGrowth(params, n, n_pp, n_other, encounter, feeding_level, ...)
+
mizerEReproAndGrowth(
+  params,
+  n,
+  n_pp,
+  n_other,
+  t,
+  encounter,
+  feeding_level,
+  ...
+)

Arguments

@@ -213,20 +230,26 @@

Arg

+ + + + +calculated by getEncounter().

+calculated by getFeedingLevel().

- +
n_other

A list of abundances for other dynamical components of the ecosystem

t

The time for which to do the calculation (Not used by standard +mizer rate functions but useful for extensions with time-dependent +parameters.)

encounter

An array (species x size) with the encounter rate as -calculated by mizerEncounter().

feeding_level

An array (species x size) with the feeding level as -calculated by mizerFeedingLevel().

...

Optional arguments for rate functions.

Unused

@@ -246,6 +269,17 @@

Value

params and set with setMetabolicRate().

The return value can be negative, which means that the energy intake does not cover the cost of metabolism and movement.

+

Your own energy rate function

+ + + +

By default getEReproAndGrowth() calls mizerEReproAndGrowth(). However you +can replace this with your own alternative energy rate function. If +your function is called "myEReproAndGrowth" then you register it in a +MizerParams object params with

params &lt;- setRateFunction(params, "EReproAndGrowth", "myEReproAndGrowth")
+ +

Your function will then be called instead of mizerEReproAndGrowth(), with +the same arguments.

See also

Other mizer rate functions: @@ -277,7 +311,7 @@

Contents

-

Site built with pkgdown 1.5.1.9000.

+

Site built with pkgdown 1.5.1.

diff --git a/docs/reference/mizerEncounter.html b/docs/reference/mizerEncounter.html index eb0d88b18..1e5983793 100644 --- a/docs/reference/mizerEncounter.html +++ b/docs/reference/mizerEncounter.html @@ -47,7 +47,9 @@ +weight \(w\) encounters food (grams/year). You would not usually call this +function directly but instead use getEncounter(), which then calls this +function unless an alternative function has been registered, see below." /> @@ -79,7 +81,7 @@ mizer - 2.0.2 + 2.0.3 @@ -184,10 +186,12 @@

Get encounter rate needed to project standard mizer model

Calculates the rate \(E_i(w)\) at which a predator of species \(i\) and -weight \(w\) encounters food (grams/year).

+weight \(w\) encounters food (grams/year). You would not usually call this +function directly but instead use getEncounter(), which then calls this +function unless an alternative function has been registered, see below.

-
mizerEncounter(params, n, n_pp, n_other, ...)
+
mizerEncounter(params, n, n_pp, n_other, t, ...)

Arguments

@@ -209,16 +213,20 @@

Arg

+ + + + - +

A list of abundances for other dynamical components of the ecosystem

t

The current time. Unused

...

Optional arguments for rate functions.

Unused

Value

-

A two dimensional array (predator species x predator size) with the -encounter rates.

+

A named two dimensional array (predator species x predator size) with +the encounter rates.

Predation encounter

@@ -251,6 +259,20 @@

Details This is used by the project() function for performing simulations.

The function returns values also for sizes outside the size-range of the species. These values should not be used, as they are meaningless.

+

If your model contains additional components that you added with +setComponent() and for which you specified an encounter_fun function then +the encounters of these components will be included in the returned value.

+

Your own encounter function

+ + + +

By default getEncounter() calls mizerEncounter(). However you can +replace this with your own alternative encounter function. If +your function is called "myEncounter" then you register it in a MizerParams +object params with

params &lt;- setRateFunction(params, "Encounter", "myEncounter")
+ +

Your function will then be called instead of mizerEncounter(), with the +same arguments.

See also

Other mizer rate functions: @@ -282,7 +304,7 @@

Contents

-

Site built with pkgdown 1.5.1.9000.

+

Site built with pkgdown 1.5.1.

diff --git a/docs/reference/mizerFMort.html b/docs/reference/mizerFMort.html index 9746a45fd..c5999a493 100644 --- a/docs/reference/mizerFMort.html +++ b/docs/reference/mizerFMort.html @@ -51,7 +51,10 @@ +imposed by each gear, \(\mu_{f.i}(w)=\sum_g F_{g,i,w}\). +You would not usually call this +function directly but instead use getFMort(), which then calls this +function unless an alternative function has been registered, see below." /> @@ -83,7 +86,7 @@ mizer - 2.0.2 + 2.0.3 @@ -191,7 +194,10 @@

Get the total fishing mortality rate from all fishing gears by time, species

Calculates the total fishing mortality (in units 1/year) from all gears by species and size at each time step in the effort argument. The total fishing mortality is just the sum of the fishing mortalities -imposed by each gear, \(\mu_{f.i}(w)=\sum_g F_{g,i,w}\).

+imposed by each gear, \(\mu_{f.i}(w)=\sum_g F_{g,i,w}\). +You would not usually call this +function directly but instead use getFMort(), which then calls this +function unless an alternative function has been registered, see below.

mizerFMort(params, effort, ...)
@@ -209,7 +215,7 @@

Arg ... -

Optional arguments for rate functions.

+

Unused

@@ -219,6 +225,17 @@

Value

Note

Here: fishing mortality = catchability x selectivity x effort.

+

Your own fishing mortality function

+ + + +

By default getFMort() calls mizerFMort(). However you can +replace this with your own alternative fishing mortality function. If +your function is called "myFMort" then you register it in a MizerParams +object params with

params &lt;- setRateFunction(params, "FMort", "myFMort")
+ +

Your function will then be called instead of mizerFMort(), with the +same arguments.

See also

Other mizer rate functions: @@ -250,7 +267,7 @@

Contents

-

Site built with pkgdown 1.5.1.9000.

+

Site built with pkgdown 1.5.1.

diff --git a/docs/reference/mizerFMortGear.html b/docs/reference/mizerFMortGear.html index 0a051085b..f94f30031 100644 --- a/docs/reference/mizerFMortGear.html +++ b/docs/reference/mizerFMortGear.html @@ -50,7 +50,7 @@ standard mizer model — mizerFMortGear" /> +This is a helper function for mizerFMort()." /> @@ -82,7 +82,7 @@ mizer - 2.0.2 + 2.0.3 @@ -189,10 +189,10 @@

Get the fishing mortality by time, gear, species and size needed to project

Calculates the fishing mortality rate \(F_{g,i,w}\) by gear, species and size at each time step in the effort argument (in units 1/year). -Used by the project function to perform simulations.

+This is a helper function for mizerFMort().

-
mizerFMortGear(params, effort, ...)
+
mizerFMortGear(params, effort)

Arguments

@@ -205,10 +205,6 @@

Arg

- - - -
effort

A vector with the effort for each fishing gear.

...

Optional arguments for rate functions.

Value

@@ -249,7 +245,7 @@

Contents

-

Site built with pkgdown 1.5.1.9000.

+

Site built with pkgdown 1.5.1.

diff --git a/docs/reference/mizerFeedingLevel.html b/docs/reference/mizerFeedingLevel.html index 51e8c298d..37313ac74 100644 --- a/docs/reference/mizerFeedingLevel.html +++ b/docs/reference/mizerFeedingLevel.html @@ -46,7 +46,9 @@ - + @@ -78,7 +80,7 @@ mizer - 2.0.2 + 2.0.3 @@ -182,10 +184,12 @@

Get feeding level needed to project standard mizer model

-

Get feeding level needed to project standard mizer model

+

You would not usually call this function directly but instead use +getFeedingLevel(), which then calls this function unless an alternative +function has been registered, see below.

-
mizerFeedingLevel(params, encounter, ...)
+
mizerFeedingLevel(params, n, n_pp, n_other, t, encounter, ...)

Arguments

@@ -194,6 +198,23 @@

Arg

+ + + + + + + + + + + + + + + + - +
params

A MizerParams object

n

A matrix of species abundances (species x size).

n_pp

A vector of the resource abundance by size

n_other

A list of abundances for other dynamical components of the +ecosystem

t

The current time. Unused

encounter

A two dimensional array (predator species x predator size) @@ -201,7 +222,7 @@

Arg

...

Optional arguments for rate functions.

Unused

@@ -225,11 +246,22 @@

-

The feeding level is used in mizerEReproAndGrowth() and in -mizerPredRate().

+

Your own feeding level function

+ + + +

By default getFeedingLevel() calls mizerFeedingLevel(). However you can +replace this with your own alternative feeding level function. If +your function is called "myFeedingLevel" then you register it in a MizerParams +object params with

params &lt;- setRateFunction(params, "FeedingLevel", "myFeedingLevel")
+ +

Your function will then be called instead of mizerFeedingLevel(), with the +same arguments.

See also

-

Other mizer rate functions: +

The feeding level is used in mizerEReproAndGrowth() and in +mizerPredRate().

+

Other mizer rate functions: mizerEGrowth(), mizerEReproAndGrowth(), mizerERepro(), @@ -258,7 +290,7 @@

Contents

-

Site built with pkgdown 1.5.1.9000.

+

Site built with pkgdown 1.5.1.

diff --git a/docs/reference/mizerMort.html b/docs/reference/mizerMort.html index c148431fe..d4800958f 100644 --- a/docs/reference/mizerMort.html +++ b/docs/reference/mizerMort.html @@ -48,7 +48,10 @@ +mortality. +You would not usually call this +function directly but instead use getMort(), which then calls this +function unless an alternative function has been registered, see below." /> @@ -80,7 +83,7 @@ mizer - 2.0.2 + 2.0.3
@@ -186,10 +189,13 @@

Get total mortality rate needed to project standard mizer model

Calculates the total mortality rate \(\mu_i(w)\) (in units 1/year) on each species by size from predation mortality, background mortality and fishing -mortality.

+mortality. +You would not usually call this +function directly but instead use getMort(), which then calls this +function unless an alternative function has been registered, see below.

-
mizerMort(params, n, n_pp, n_other, f_mort, pred_mort, ...)
+
mizerMort(params, n, n_pp, n_other, t, f_mort, pred_mort, ...)

Arguments

@@ -210,6 +216,12 @@

Arg

+ + + + @@ -223,14 +235,31 @@

Arg

- +
n_other

A list of abundances for other dynamical components of the ecosystem

t

The time for which to do the calculation (Not used by standard +mizer rate functions but useful for extensions with time-dependent +parameters.)

f_mort
...

Optional arguments for rate functions.

Unused

Value

-

A two dimensional array (species x size) with the total mortality -rates.

+

A named two dimensional array (species x size) with the total +mortality rates.

+

Details

+ +

If your model contains additional components that you added with +setComponent() and for which you specified a mort_fun function then +the mortality inflicted by these components will be included in the returned +value.

+

Your own mortality function

+ + + +

By default getMort() calls mizerMort(). However you can +replace this with your own alternative mortality function. If +your function is called "myMort" then you register it in a MizerParams +object params with

params &lt;- setRateFunction(params, "Mort", "myMort")
+ +

Your function will then be called instead of mizerMort(), with the +same arguments.

See also

Other mizer rate functions: @@ -262,7 +291,7 @@

Contents

-

Site built with pkgdown 1.5.1.9000.

+

Site built with pkgdown 1.5.1.

diff --git a/docs/reference/mizerPredMort.html b/docs/reference/mizerPredMort.html index cb199283e..f8c8f8c58 100644 --- a/docs/reference/mizerPredMort.html +++ b/docs/reference/mizerPredMort.html @@ -48,7 +48,10 @@ +$$\mu_{p.i}(w_p) = \sum_j {\tt pred\_rate}_j(w_p)\, \theta_{ji}.$$ +You would not usually call this +function directly but instead use getPredMort(), which then calls this +function unless an alternative function has been registered, see below." /> @@ -80,7 +83,7 @@ mizer - 2.0.2 + 2.0.3 @@ -186,10 +189,13 @@

Get total predation mortality rate needed to project standard mizer model

Calculates the total predation mortality rate \(\mu_{p,i}(w_p)\) (in units of 1/year) on each prey species by prey size: -$$\mu_{p.i}(w_p) = \sum_j {\tt pred\_rate}_j(w_p)\, \theta_{ji}.$$

+$$\mu_{p.i}(w_p) = \sum_j {\tt pred\_rate}_j(w_p)\, \theta_{ji}.$$ +You would not usually call this +function directly but instead use getPredMort(), which then calls this +function unless an alternative function has been registered, see below.

-
mizerPredMort(params, n, n_pp, n_other, pred_rate, ...)
+
mizerPredMort(params, n, n_pp, n_other, t, pred_rate, ...)

Arguments

@@ -210,6 +216,12 @@

Arg

+ + + + @@ -218,7 +230,7 @@

Arg

- +
n_other

A list of abundances for other dynamical components of the ecosystem

t

The time for which to do the calculation (Not used by standard +mizer rate functions but useful for extensions with time-dependent +parameters.)

pred_rate
...

Optional arguments for rate functions.

Unused

@@ -226,6 +238,17 @@

Value

A two dimensional array (prey species x prey size) with the predation mortality

+

Your own predation mortality function

+ + + +

By default getPredMort() calls mizerPredMort(). However you can +replace this with your own alternative predation mortality function. If +your function is called "myPredMort" then you register it in a MizerParams +object params with

params &lt;- setRateFunction(params, "PredMort", "myPredMort")
+ +

Your function will then be called instead of mizerPredMort(), with the +same arguments.

See also

Other mizer rate functions: @@ -257,7 +280,7 @@

Contents

-

Site built with pkgdown 1.5.1.9000.

+

Site built with pkgdown 1.5.1.

diff --git a/docs/reference/mizerPredRate.html b/docs/reference/mizerPredRate.html index f16303415..cbbf4025d 100644 --- a/docs/reference/mizerPredRate.html +++ b/docs/reference/mizerPredRate.html @@ -51,7 +51,10 @@ $${\tt pred\_rate}_j(w_p) = \int \phi_j(w,w_p) (1-f_j(w)) \gamma_j(w) N_j(w) \, dw.$$ This potential rate is used in the function mizerPredMort() to -calculate the realised predation mortality rate on the prey individual." /> +calculate the realised predation mortality rate on the prey individual. +You would not usually call this +function directly but instead use getPredRate(), which then calls this +function unless an alternative function has been registered, see below." /> @@ -83,7 +86,7 @@ mizer - 2.0.2 + 2.0.3 @@ -192,10 +195,13 @@

Get predation rate needed to project standard mizer model

$${\tt pred\_rate}_j(w_p) = \int \phi_j(w,w_p) (1-f_j(w)) \gamma_j(w) N_j(w) \, dw.$$ This potential rate is used in the function mizerPredMort() to -calculate the realised predation mortality rate on the prey individual.

+calculate the realised predation mortality rate on the prey individual. +You would not usually call this +function directly but instead use getPredRate(), which then calls this +function unless an alternative function has been registered, see below.

-
mizerPredRate(params, n, n_pp, n_other, feeding_level, ...)
+
mizerPredRate(params, n, n_pp, n_other, t, feeding_level, ...)

Arguments

@@ -216,24 +222,40 @@

Arg

+ + + + - + - +
n_other

A list of abundances for other dynamical components of the ecosystem

t

The time for which to do the calculation (Not used by standard +mizer rate functions but useful for extensions with time-dependent +parameters.)

feeding_level

The current feeding level (optional). A matrix of size -no. species x no. size bins. If not supplied, is calculated internally -using the getFeedingLevel() function.

An array (species x size) with the feeding level as +calculated by getFeedingLevel().

...

Optional arguments for rate functions.

Unused

Value

-

A two dimensional array (predator species x prey size) with the +

A named two dimensional array (predator species x prey size) with the predation rate, where the prey size runs over fish community plus resource spectrum.

+

Your own predation rate function

+ + + +

By default getPredRate() calls mizerPredRate(). However you can +replace this with your own alternative predation rate function. If +your function is called "myPredRate" then you register it in a MizerParams +object params with

params &lt;- setRateFunction(params, "PredRate", "myPredRate")
+ +

Your function will then be called instead of mizerPredRate(), with +the same arguments.

See also

Other mizer rate functions: @@ -265,7 +287,7 @@

Contents

-

Site built with pkgdown 1.5.1.9000.

+

Site built with pkgdown 1.5.1.

diff --git a/docs/reference/mizerRDI.html b/docs/reference/mizerRDI.html index 529e74a40..e931428a7 100644 --- a/docs/reference/mizerRDI.html +++ b/docs/reference/mizerRDI.html @@ -52,7 +52,10 @@ (units 1/year) before density dependence, by species. This is obtained by taking the total rate at which energy is invested in reproduction, multiplying by the reproductive efficiency erepro and dividing by the egg -size w_min, and by a factor of two to account for the two sexes." /> +size w_min, and by a factor of two to account for the two sexes. +You would not usually call this +function directly but instead use getRDI(), which then calls this +function unless an alternative function has been registered, see below." /> @@ -84,7 +87,7 @@ mizer - 2.0.2 + 2.0.3 @@ -193,10 +196,13 @@

Get density-independent rate of reproduction needed to project standard (units 1/year) before density dependence, by species. This is obtained by taking the total rate at which energy is invested in reproduction, multiplying by the reproductive efficiency erepro and dividing by the egg -size w_min, and by a factor of two to account for the two sexes.

+size w_min, and by a factor of two to account for the two sexes. +You would not usually call this +function directly but instead use getRDI(), which then calls this +function unless an alternative function has been registered, see below.

-
mizerRDI(params, n, n_pp, n_other, e_repro, ...)
+
mizerRDI(params, n, n_pp, n_other, t, e_growth, mort, e_repro, ...)

Arguments

@@ -217,6 +223,22 @@

Arg

+ + + + + + + + + + + + @@ -225,7 +247,7 @@

Arg

- +
n_other

A list of abundances for other dynamical components of the ecosystem

t

The time for which to do the calculation (Not used by standard +mizer rate functions but useful for extensions with time-dependent +parameters.)

e_growth

An array (species x size) with the energy available for +growth as calculated by getEGrowth(). Unused.

mort

An array (species x size) with the mortality rate as calculated +by getMort(). Unused.

e_repro
...

Optional arguments for rate functions.

Unused

@@ -236,6 +258,17 @@

Details

Used by getRDD() to calculate the actual, density dependent rate. See setReproduction() for more details.

+

Your own reproduction function

+ + + +

By default getRDI() calls mizerRDI(). However you can +replace this with your own alternative reproduction function. If +your function is called "myRDI" then you register it in a MizerParams +object params with

params &lt;- setRateFunction(params, "RDI", "myRDI")
+ +

Your function will then be called instead of mizerRDI(), with the +same arguments.

See also

Other mizer rate functions: @@ -267,7 +300,7 @@

Contents

-

Site built with pkgdown 1.5.1.9000.

+

Site built with pkgdown 1.5.1.

diff --git a/docs/reference/mizerRates.html b/docs/reference/mizerRates.html index 36f54c9b5..bbf94316d 100644 --- a/docs/reference/mizerRates.html +++ b/docs/reference/mizerRates.html @@ -78,7 +78,7 @@ mizer - 2.0.2 + 2.0.3 @@ -209,7 +209,9 @@

Arg t -

The current time

+

The time for which to do the calculation (Not used by standard +mizer rate functions but useful for extensions with time-dependent +parameters.)

effort @@ -222,7 +224,7 @@

Arg ... -

Optional arguments for rate functions.

+

Unused

@@ -274,7 +276,7 @@

Contents

-

Site built with pkgdown 1.5.1.9000.

+

Site built with pkgdown 1.5.1.

diff --git a/docs/reference/mizerResourceMort.html b/docs/reference/mizerResourceMort.html index 20a054c42..0f87926d8 100644 --- a/docs/reference/mizerResourceMort.html +++ b/docs/reference/mizerResourceMort.html @@ -49,7 +49,10 @@ +spectrum by resource size (in units 1/year). +You would not usually call this +function directly but instead use getResourceMort(), which then calls this +function unless an alternative function has been registered, see below." /> @@ -81,7 +84,7 @@ mizer - 2.0.2 + 2.0.3 @@ -187,10 +190,13 @@

Get predation mortality rate for resource needed to project standard mizer

Calculates the predation mortality rate \(\mu_p(w)\) on the resource -spectrum by resource size (in units 1/year).

+spectrum by resource size (in units 1/year). +You would not usually call this +function directly but instead use getResourceMort(), which then calls this +function unless an alternative function has been registered, see below.

-
mizerResourceMort(params, n, n_pp, n_other, pred_rate, ...)
+
mizerResourceMort(params, n, n_pp, n_other, t, pred_rate, ...)

Arguments

@@ -211,6 +217,12 @@

Arg

+ + + + @@ -220,16 +232,24 @@

Arg

- +
n_other

A list of abundances for other dynamical components of the ecosystem

t

The time for which to do the calculation (Not used by standard +mizer rate functions but useful for extensions with time-dependent +parameters.)

pred_rate
...

Optional arguments for rate functions.

Unused

Value

A vector of mortality rate by resource size.

-

Details

+

Your own resource mortality function

+ + + +

By default getResourceMort() calls mizerResourceMort(). However you can +replace this with your own alternative resource mortality function. If +your function is called "myResourceMort" then you register it in a MizerParams +object params with

params &lt;- setRateFunction(params, "ResourceMort", "myResourceMort")
-

Used by the project function for running size based simulations.

+

Your function will then be called instead of mizerResourceMort(), with the +same arguments.

See also

Other mizer rate functions: @@ -261,7 +281,7 @@

Contents

-

Site built with pkgdown 1.5.1.9000.

+

Site built with pkgdown 1.5.1.

diff --git a/docs/reference/newCommunityParams.html b/docs/reference/newCommunityParams.html index 4d62639af..5a82408cd 100644 --- a/docs/reference/newCommunityParams.html +++ b/docs/reference/newCommunityParams.html @@ -79,7 +79,7 @@ mizer - 2.0.2 + 2.0.3 @@ -350,7 +350,7 @@

Contents

-

Site built with pkgdown 1.5.1.9000.

+

Site built with pkgdown 1.5.1.

diff --git a/docs/reference/newMultispeciesParams.html b/docs/reference/newMultispeciesParams.html index 38c267728..47af06f7d 100644 --- a/docs/reference/newMultispeciesParams.html +++ b/docs/reference/newMultispeciesParams.html @@ -84,7 +84,7 @@ mizer - 2.0.2 + 2.0.3 @@ -690,7 +690,7 @@

-

Site built with pkgdown 1.5.1.9000.

+

Site built with pkgdown 1.5.1.

diff --git a/docs/reference/newTraitParams.html b/docs/reference/newTraitParams.html index 89ab53dae..ee4336795 100644 --- a/docs/reference/newTraitParams.html +++ b/docs/reference/newTraitParams.html @@ -87,7 +87,7 @@ mizer - 2.0.2 + 2.0.3 @@ -462,7 +462,7 @@

Contents

-

Site built with pkgdown 1.5.1.9000.

+

Site built with pkgdown 1.5.1.

diff --git a/docs/reference/noRDD.html b/docs/reference/noRDD.html index b5792cd7d..c1ab66de7 100644 --- a/docs/reference/noRDD.html +++ b/docs/reference/noRDD.html @@ -78,7 +78,7 @@ mizer - 2.0.2 + 2.0.3 @@ -227,7 +227,7 @@

Contents

-

Site built with pkgdown 1.5.1.9000.

+

Site built with pkgdown 1.5.1.

diff --git a/docs/reference/plotBiomass.html b/docs/reference/plotBiomass.html index 222721a7c..7a7481d94 100644 --- a/docs/reference/plotBiomass.html +++ b/docs/reference/plotBiomass.html @@ -80,7 +80,7 @@ mizer - 2.0.2 + 2.0.3 @@ -264,7 +264,7 @@

Arg ... -

Arguments passed on to get_size_range_array

+

Arguments passed on to get_size_range_array

min_w

Smallest weight in size range. Defaults to smallest weight in the model.

max_w

Largest weight in size range. Defaults to largest weight in the @@ -283,7 +283,7 @@

Value

A plot

See also

-

plotting_functions, getBiomass()

+

plotting_functions, getBiomass()

Other plotting functions: plot,MizerSim,missing-method, plotDiet(), @@ -319,7 +319,7 @@

Contents

-

Site built with pkgdown 1.5.1.9000.

+

Site built with pkgdown 1.5.1.

diff --git a/docs/reference/plotDiet.html b/docs/reference/plotDiet.html index a2788af79..60776643a 100644 --- a/docs/reference/plotDiet.html +++ b/docs/reference/plotDiet.html @@ -78,7 +78,7 @@ mizer - 2.0.2 + 2.0.3
@@ -232,7 +232,7 @@

Contents

-

Site built with pkgdown 1.5.1.9000.

+

Site built with pkgdown 1.5.1.

diff --git a/docs/reference/plotFMort.html b/docs/reference/plotFMort.html index 42ced3cc7..10a2c51d8 100644 --- a/docs/reference/plotFMort.html +++ b/docs/reference/plotFMort.html @@ -81,7 +81,7 @@ mizer - 2.0.2 + 2.0.3 @@ -229,7 +229,7 @@

Value

A plot

See also

-

plotting_functions, getFMort()

+

plotting_functions, getFMort()

Other plotting functions: plot,MizerSim,missing-method, plotBiomass(), @@ -263,7 +263,7 @@

Contents

-

Site built with pkgdown 1.5.1.9000.

+

Site built with pkgdown 1.5.1.

diff --git a/docs/reference/plotFeedingLevel.html b/docs/reference/plotFeedingLevel.html index 0b97f1293..f89ea8762 100644 --- a/docs/reference/plotFeedingLevel.html +++ b/docs/reference/plotFeedingLevel.html @@ -80,7 +80,7 @@ mizer - 2.0.2 + 2.0.3
@@ -263,7 +263,7 @@

Details where the feeding level drops to the critical feeding level.

See also

-

plotting_functions, getFeedingLevel()

+

plotting_functions, getFeedingLevel()

Other plotting functions: plot,MizerSim,missing-method, plotBiomass(), @@ -298,7 +298,7 @@

Contents

-

Site built with pkgdown 1.5.1.9000.

+

Site built with pkgdown 1.5.1.

diff --git a/docs/reference/plotGrowthCurves.html b/docs/reference/plotGrowthCurves.html index 59f2a9bef..81d2b95d4 100644 --- a/docs/reference/plotGrowthCurves.html +++ b/docs/reference/plotGrowthCurves.html @@ -83,7 +83,7 @@ mizer - 2.0.2 + 2.0.3
@@ -246,7 +246,7 @@

Value

A plot

See also

-

plotting_functions

+

plotting_functions

Other plotting functions: plot,MizerSim,missing-method, plotBiomass(), @@ -280,7 +280,7 @@

Contents

-

Site built with pkgdown 1.5.1.9000.

+

Site built with pkgdown 1.5.1.

diff --git a/docs/reference/plotM2.html b/docs/reference/plotM2.html index 94e6d75d2..1b89ae471 100644 --- a/docs/reference/plotM2.html +++ b/docs/reference/plotM2.html @@ -78,7 +78,7 @@ mizer - 2.0.2 + 2.0.3
@@ -221,7 +221,7 @@

Value

A plot

See also

-

plotting_functions, getPredMort()

+

plotting_functions, getPredMort()

Other plotting functions: plot,MizerSim,missing-method, plotBiomass(), @@ -255,7 +255,7 @@

Contents

-

Site built with pkgdown 1.5.1.9000.

+

Site built with pkgdown 1.5.1.

diff --git a/docs/reference/plotMizerSim.html b/docs/reference/plotMizerSim.html index 0de6198dd..16def1e2e 100644 --- a/docs/reference/plotMizerSim.html +++ b/docs/reference/plotMizerSim.html @@ -84,7 +84,7 @@ mizer - 2.0.2 + 2.0.3
@@ -198,10 +198,10 @@

Summary plot for MizerSim objects

# S4 method for MizerSim,missing
-plot(x, y, ...)
+plot(x, y, ...)
 
 # S4 method for MizerParams,missing
-plot(x, y, ...)
+plot(x, y, ...)

Arguments

@@ -229,8 +229,8 @@

Value

A viewport object

See also

-

plotting_functions

-

plotting_functions

+

plotting_functions

+

plotting_functions

Other plotting functions: plotBiomass(), plotDiet(), @@ -258,10 +258,10 @@

Examp
# \donttest{ params <- suppressMessages(newMultispeciesParams(NS_species_params_gears, inter)) sim <- project(params, effort=1, t_max=20, t_save = 2, progress_bar = FALSE) -plot(sim)
plot(sim, time_range = 10:20) # change time period for size-based plots
plot(sim, min_w = 10, max_w = 1000) # change size range for biomass plot
# } +plot(sim)
plot(sim, time_range = 10:20) # change time period for size-based plots
plot(sim, min_w = 10, max_w = 1000) # change size range for biomass plot
# } # \donttest{ params <- suppressMessages(newMultispeciesParams(NS_species_params_gears, inter)) -plot(params)
plot(params, min_w = 10, max_w = 1000) # change size range for biomass plot
# } +plot(params)
plot(params, min_w = 10, max_w = 1000) # change size range for biomass plot
# }

-

Site built with pkgdown 1.5.1.9000.

+

Site built with pkgdown 1.5.1.

diff --git a/docs/reference/plotPredMort.html b/docs/reference/plotPredMort.html index 67b1088f1..ac7569dcd 100644 --- a/docs/reference/plotPredMort.html +++ b/docs/reference/plotPredMort.html @@ -80,7 +80,7 @@ mizer - 2.0.2 + 2.0.3
@@ -227,7 +227,7 @@

Value

A plot

See also

-

plotting_functions, getPredMort()

+

plotting_functions, getPredMort()

Other plotting functions: plot,MizerSim,missing-method, plotBiomass(), @@ -261,7 +261,7 @@

Contents

-

Site built with pkgdown 1.5.1.9000.

+

Site built with pkgdown 1.5.1.

diff --git a/docs/reference/plotSpectra.html b/docs/reference/plotSpectra.html index 014e5ca51..1e5248712 100644 --- a/docs/reference/plotSpectra.html +++ b/docs/reference/plotSpectra.html @@ -79,7 +79,7 @@ mizer - 2.0.2 + 2.0.3
@@ -297,7 +297,7 @@

Details object the initial abundance is plotted.

See also

-

plotting_functions

+

plotting_functions

Other plotting functions: plot,MizerSim,missing-method, plotBiomass(), @@ -331,7 +331,7 @@

Contents

-

Site built with pkgdown 1.5.1.9000.

+

Site built with pkgdown 1.5.1.

diff --git a/docs/reference/plotYield.html b/docs/reference/plotYield.html index 92139716c..eb88aff33 100644 --- a/docs/reference/plotYield.html +++ b/docs/reference/plotYield.html @@ -80,7 +80,7 @@ mizer - 2.0.2 + 2.0.3
@@ -243,7 +243,7 @@

Value

A plot

See also

-

plotting_functions, getYield()

+

plotting_functions, getYield()

Other plotting functions: plot,MizerSim,missing-method, plotBiomass(), @@ -280,7 +280,7 @@

Contents

-

Site built with pkgdown 1.5.1.9000.

+

Site built with pkgdown 1.5.1.

diff --git a/docs/reference/plotYieldGear.html b/docs/reference/plotYieldGear.html index 96c1da409..51fd44b38 100644 --- a/docs/reference/plotYieldGear.html +++ b/docs/reference/plotYieldGear.html @@ -79,7 +79,7 @@ mizer - 2.0.2 + 2.0.3
@@ -229,7 +229,7 @@

Details etc. Just look at the source code for details.

See also

-

plotting_functions, getYieldGear()

+

plotting_functions, getYieldGear()

Other plotting functions: plot,MizerSim,missing-method, plotBiomass(), @@ -263,7 +263,7 @@

Contents

-

Site built with pkgdown 1.5.1.9000.

+

Site built with pkgdown 1.5.1.

diff --git a/docs/reference/plotting_functions.html b/docs/reference/plotting_functions.html index 74eba2227..5b1f8fdb6 100644 --- a/docs/reference/plotting_functions.html +++ b/docs/reference/plotting_functions.html @@ -83,7 +83,7 @@ mizer - 2.0.2 + 2.0.3
@@ -210,7 +210,7 @@

Details

- +
plotYieldGear()Plots the total yield of each species by gear against time.
plotDiet()Plots the diet composition at size for a given predator species.
plotGrowthCurves()Plots the size as a function of age.
plot()Produces 5 plots (plotFeedingLevel(), plotBiomass(), plotPredMort(), plotFMort() and plotSpectra()) in the same window.
plot()Produces 5 plots (plotFeedingLevel(), plotBiomass(), plotPredMort(), plotFMort() and plotSpectra()) in the same window.
@@ -235,7 +235,7 @@

Details the species parameter data frame.

See also

-

summary_functions, indicator_functions

+

summary_functions, indicator_functions

Other plotting functions: plot,MizerSim,missing-method, plotBiomass(), @@ -284,7 +284,7 @@

Contents

-

Site built with pkgdown 1.5.1.9000.

+

Site built with pkgdown 1.5.1.

diff --git a/docs/reference/power_law_pred_kernel.html b/docs/reference/power_law_pred_kernel.html index c12361871..4ce8c4d98 100644 --- a/docs/reference/power_law_pred_kernel.html +++ b/docs/reference/power_law_pred_kernel.html @@ -79,7 +79,7 @@ mizer - 2.0.2 + 2.0.3
@@ -256,7 +256,7 @@

Contents

-

Site built with pkgdown 1.5.1.9000.

+

Site built with pkgdown 1.5.1.

diff --git a/docs/reference/project.html b/docs/reference/project.html index a2771ce80..5988b3250 100644 --- a/docs/reference/project.html +++ b/docs/reference/project.html @@ -82,7 +82,7 @@ mizer - 2.0.2 + 2.0.3 @@ -189,8 +189,8 @@

Project size spectrum forward in time

Runs the size spectrum model simulation. The function returns an object of type MizerSim that can then be explored with a range of -summary_functions, indicator_functions and -plotting_functions.

+summary_functions, indicator_functions and +plotting_functions.

project(
@@ -261,7 +261,7 @@ 

Arg progress_bar

Either a boolean value to determine whether a progress -bar should be shown in the console, or a shiny progress object to implement +bar should be shown in the console, or a shiny Progress object to implement a progress bar in a shiny app.

@@ -340,7 +340,7 @@

Contents

-

Site built with pkgdown 1.5.1.9000.

+

Site built with pkgdown 1.5.1.

diff --git a/docs/reference/project_simple.html b/docs/reference/project_simple.html index 3ef4fbc4b..0be547d58 100644 --- a/docs/reference/project_simple.html +++ b/docs/reference/project_simple.html @@ -79,7 +79,7 @@ mizer - 2.0.2 + 2.0.3 @@ -273,9 +273,9 @@

Details intermediate results but only returns the result at time t + dt * steps. During this time it uses the constant fishing effort effort.

The functional arguments can be calculated from slots in the params object -with

resource_dynamics_fn <- get(params@resource_dynamics)
-other_dynamics_fns <- lapply(params@other_dynamics, get)
-rates_fns <- lapply(params@rates_funcs, get)
+with

resource_dynamics_fn &lt;- get(params@resource_dynamics)
+other_dynamics_fns &lt;- lapply(params@other_dynamics, get)
+rates_fns &lt;- lapply(params@rates_funcs, get)

The reason the function does not do that itself is to shave 20 microseconds of its running time, which pays when the function is called hundreds of @@ -303,7 +303,7 @@

Contents

-

Site built with pkgdown 1.5.1.9000.

+

Site built with pkgdown 1.5.1.

diff --git a/docs/reference/reexports.html b/docs/reference/reexports.html index 3c42563cb..b4e8f213d 100644 --- a/docs/reference/reexports.html +++ b/docs/reference/reexports.html @@ -83,7 +83,7 @@ mizer - 2.0.2 + 2.0.3 @@ -182,14 +182,14 @@

These objects are imported from other packages. Follow the links below to see their documentation.

-
+
reshape2

melt

@@ -213,7 +213,7 @@

Contents

-

Site built with pkgdown 1.5.1.9000.

+

Site built with pkgdown 1.5.1.

diff --git a/docs/reference/resource_constant.html b/docs/reference/resource_constant.html index 4ebcc9904..cf402267e 100644 --- a/docs/reference/resource_constant.html +++ b/docs/reference/resource_constant.html @@ -80,7 +80,7 @@ mizer - 2.0.2 + 2.0.3
@@ -252,7 +252,7 @@

Contents

-

Site built with pkgdown 1.5.1.9000.

+

Site built with pkgdown 1.5.1.

diff --git a/docs/reference/resource_encounter.html b/docs/reference/resource_encounter.html index e6090b85c..a95c6bc36 100644 --- a/docs/reference/resource_encounter.html +++ b/docs/reference/resource_encounter.html @@ -78,7 +78,7 @@ mizer - 2.0.2 + 2.0.3 @@ -228,7 +228,7 @@

Contents

-

Site built with pkgdown 1.5.1.9000.

+

Site built with pkgdown 1.5.1.

diff --git a/docs/reference/resource_semichemostat.html b/docs/reference/resource_semichemostat.html index e968a2108..4d58ee57e 100644 --- a/docs/reference/resource_semichemostat.html +++ b/docs/reference/resource_semichemostat.html @@ -78,7 +78,7 @@ mizer - 2.0.2 + 2.0.3 @@ -248,7 +248,7 @@

Contents

-

Site built with pkgdown 1.5.1.9000.

+

Site built with pkgdown 1.5.1.

diff --git a/docs/reference/retune_erepro.html b/docs/reference/retune_erepro.html index 5f7ac3a5c..0735f24a4 100644 --- a/docs/reference/retune_erepro.html +++ b/docs/reference/retune_erepro.html @@ -82,7 +82,7 @@ mizer - 2.0.2 + 2.0.3 @@ -229,7 +229,7 @@

Contents

-

Site built with pkgdown 1.5.1.9000.

+

Site built with pkgdown 1.5.1.

diff --git a/docs/reference/semichemostat.html b/docs/reference/semichemostat.html index cad9d41b6..e132db945 100644 --- a/docs/reference/semichemostat.html +++ b/docs/reference/semichemostat.html @@ -78,7 +78,7 @@ mizer - 2.0.2 + 2.0.3 @@ -232,7 +232,7 @@

Contents

-

Site built with pkgdown 1.5.1.9000.

+

Site built with pkgdown 1.5.1.

diff --git a/docs/reference/setColours.html b/docs/reference/setColours.html index a192278da..fa631d429 100644 --- a/docs/reference/setColours.html +++ b/docs/reference/setColours.html @@ -78,7 +78,7 @@ mizer - 2.0.2 + 2.0.3 @@ -230,7 +230,7 @@

Contents

-

Site built with pkgdown 1.5.1.9000.

+

Site built with pkgdown 1.5.1.

diff --git a/docs/reference/setComponent.html b/docs/reference/setComponent.html index 6ea3c4cd4..faf9f88aa 100644 --- a/docs/reference/setComponent.html +++ b/docs/reference/setComponent.html @@ -81,7 +81,7 @@ mizer - 2.0.2 + 2.0.3 @@ -266,7 +266,7 @@

Contents

-

Site built with pkgdown 1.5.1.9000.

+

Site built with pkgdown 1.5.1.

diff --git a/docs/reference/setExtMort.html b/docs/reference/setExtMort.html index 66c421456..31a2b03fd 100644 --- a/docs/reference/setExtMort.html +++ b/docs/reference/setExtMort.html @@ -78,7 +78,7 @@ mizer - 2.0.2 + 2.0.3 @@ -290,7 +290,7 @@

Contents

-

Site built with pkgdown 1.5.1.9000.

+

Site built with pkgdown 1.5.1.

diff --git a/docs/reference/setFishing.html b/docs/reference/setFishing.html index 9e582711c..fe16fc6f9 100644 --- a/docs/reference/setFishing.html +++ b/docs/reference/setFishing.html @@ -78,7 +78,7 @@ mizer - 2.0.2 + 2.0.3 @@ -250,7 +250,7 @@

-

Site built with pkgdown 1.5.1.9000.

+

Site built with pkgdown 1.5.1.

diff --git a/docs/reference/setInitialValues.html b/docs/reference/setInitialValues.html index 993a2ee1a..be7888ef0 100644 --- a/docs/reference/setInitialValues.html +++ b/docs/reference/setInitialValues.html @@ -79,7 +79,7 @@ mizer - 2.0.2 + 2.0.3 @@ -246,7 +246,7 @@

Contents

-

Site built with pkgdown 1.5.1.9000.

+

Site built with pkgdown 1.5.1.

diff --git a/docs/reference/setInteraction.html b/docs/reference/setInteraction.html index d59b9a4d8..b654277b2 100644 --- a/docs/reference/setInteraction.html +++ b/docs/reference/setInteraction.html @@ -78,7 +78,7 @@ mizer - 2.0.2 + 2.0.3 @@ -277,7 +277,7 @@

Contents

-

Site built with pkgdown 1.5.1.9000.

+

Site built with pkgdown 1.5.1.

diff --git a/docs/reference/setLinetypes.html b/docs/reference/setLinetypes.html index b4d698550..068aeb579 100644 --- a/docs/reference/setLinetypes.html +++ b/docs/reference/setLinetypes.html @@ -78,7 +78,7 @@ mizer - 2.0.2 + 2.0.3 @@ -269,7 +269,7 @@

Contents

-

Site built with pkgdown 1.5.1.9000.

+

Site built with pkgdown 1.5.1.

diff --git a/docs/reference/setMaxIntakeRate.html b/docs/reference/setMaxIntakeRate.html index cd45a9b5e..a00e93a6a 100644 --- a/docs/reference/setMaxIntakeRate.html +++ b/docs/reference/setMaxIntakeRate.html @@ -78,7 +78,7 @@ mizer - 2.0.2 + 2.0.3 @@ -266,7 +266,7 @@

Contents

-

Site built with pkgdown 1.5.1.9000.

+

Site built with pkgdown 1.5.1.

diff --git a/docs/reference/setMetabolicRate.html b/docs/reference/setMetabolicRate.html index b9a762222..2e51c269e 100644 --- a/docs/reference/setMetabolicRate.html +++ b/docs/reference/setMetabolicRate.html @@ -78,7 +78,7 @@ mizer - 2.0.2 + 2.0.3 @@ -276,7 +276,7 @@

Contents

-

Site built with pkgdown 1.5.1.9000.

+

Site built with pkgdown 1.5.1.

diff --git a/docs/reference/setParams.html b/docs/reference/setParams.html index b407a605c..b5167044d 100644 --- a/docs/reference/setParams.html +++ b/docs/reference/setParams.html @@ -90,7 +90,7 @@ mizer - 2.0.2 + 2.0.3 @@ -234,7 +234,7 @@

Arg ... -

Arguments passed on to setPredKernel, setSearchVolume, setMaxIntakeRate, setMetabolicRate, setExtMort, setReproduction, setFishing, setResource

+

Arguments passed on to setPredKernel, setSearchVolume, setMaxIntakeRate, setMetabolicRate, setExtMort, setReproduction, setFishing, setResource

pred_kernel

Optional. An array (species x predator size x prey size) that holds the predation coefficient of each predator at size on each prey size. If not supplied, a default is set as described in section "Setting @@ -305,8 +305,8 @@

Details by themselves is not changing the model until you call setParams() or the appropriate one of its sub-functions. Here is an example which assumes that you have have a MizerParams object params in which you just want to change -one parameter of the third species:

params@species_params$gamma[[3]] <- 1000
-params <- setParams(params)
+one parameter of the third species:

params@species_params$gamma[[3]] &lt;- 1000
+params &lt;- setParams(params)

Because of the way the R language works, setParams does not make the changes to the params object that you pass to it but instead returns a new @@ -327,8 +327,8 @@

Details instead of params <- setParams(params).

If you have added a comment to a slot of the params object, then setParams() and its subfunctions will not recalculate the value for that slot from the -species parameters. For example

comment(params@search_vol) <- "This should not change"
-species_params(params)$gamma <- 10
+species parameters. For example

comment(params@search_vol) &lt;- "This should not change"
+species_params(params)$gamma &lt;- 10

will just issue a warning "The search volume has been commented and therefore will not be recalculated from the species parameters". You can remove the @@ -592,7 +592,7 @@

-

Site built with pkgdown 1.5.1.9000.

+

Site built with pkgdown 1.5.1.

diff --git a/docs/reference/setPredKernel.html b/docs/reference/setPredKernel.html index 8c374c9f6..52e39324a 100644 --- a/docs/reference/setPredKernel.html +++ b/docs/reference/setPredKernel.html @@ -84,7 +84,7 @@ mizer - 2.0.2 + 2.0.3 @@ -321,7 +321,7 @@

Contents

-

Site built with pkgdown 1.5.1.9000.

+

Site built with pkgdown 1.5.1.

diff --git a/docs/reference/setRateFunction.html b/docs/reference/setRateFunction.html index d99ebcece..970025a6e 100644 --- a/docs/reference/setRateFunction.html +++ b/docs/reference/setRateFunction.html @@ -81,7 +81,7 @@ mizer - 2.0.2 + 2.0.3 @@ -252,17 +252,20 @@

Details you have written your own function for calculating the total mortality rate and have called it myMort and have a mizer model stored in a MizerParams object called params that you want to run with your new -mortality rate, then you would call

params <- setRateFunction(params, "Mort", "myMort")
+mortality rate, then you would call

params &lt;- setRateFunction(params, "Mort", "myMort")

In general if you want to replace a function mizerSomeRateFunc() with -a function myVersionOfThis() you would call

params <- setRateFunction(params, "SomeRateFunc", "myVersionOfThis")
+a function myVersionOfThis() you would call

params &lt;- setRateFunction(params, "SomeRateFunc", "myVersionOfThis")

In some extreme cases you may need to swap out the entire mizerRates() -function for your own function called myRates(). That you can do with

params <- setRateFunction(params, "Rates", "myRates")
+function for your own function called myRates(). That you can do with

params &lt;- setRateFunction(params, "Rates", "myRates")

Your new rate functions may need their own model parameters. These you -can store in other_params(params). For example

other_params(params)$my_param <- 42
+can store in other_params(params). For example

other_params(params)$my_param &lt;- 42
+

Note that your own rate functions need to be defined in the global +environment or in a package. If they are defined within a function then +mizer will not find them.

-

Site built with pkgdown 1.5.1.9000.

+

Site built with pkgdown 1.5.1.

diff --git a/docs/reference/setReproduction.html b/docs/reference/setReproduction.html index 616764210..d2ba0aee0 100644 --- a/docs/reference/setReproduction.html +++ b/docs/reference/setReproduction.html @@ -80,7 +80,7 @@ mizer - 2.0.2 + 2.0.3 @@ -340,7 +340,7 @@

Contents

-

Site built with pkgdown 1.5.1.9000.

+

Site built with pkgdown 1.5.1.

diff --git a/docs/reference/setResource.html b/docs/reference/setResource.html index ef69c7ea9..4958c11b6 100644 --- a/docs/reference/setResource.html +++ b/docs/reference/setResource.html @@ -80,7 +80,7 @@ mizer - 2.0.2 + 2.0.3 @@ -323,7 +323,7 @@

Contents

-

Site built with pkgdown 1.5.1.9000.

+

Site built with pkgdown 1.5.1.

diff --git a/docs/reference/setRmax.html b/docs/reference/setRmax.html index d25068e6c..02ceef837 100644 --- a/docs/reference/setRmax.html +++ b/docs/reference/setRmax.html @@ -83,7 +83,7 @@ mizer - 2.0.2 + 2.0.3 @@ -230,7 +230,7 @@

Contents

-

Site built with pkgdown 1.5.1.9000.

+

Site built with pkgdown 1.5.1.

diff --git a/docs/reference/setSearchVolume.html b/docs/reference/setSearchVolume.html index 3e8dda7af..82e838810 100644 --- a/docs/reference/setSearchVolume.html +++ b/docs/reference/setSearchVolume.html @@ -78,7 +78,7 @@ mizer - 2.0.2 + 2.0.3 @@ -275,7 +275,7 @@

Contents

-

Site built with pkgdown 1.5.1.9000.

+

Site built with pkgdown 1.5.1.

diff --git a/docs/reference/set_community_model.html b/docs/reference/set_community_model.html index e664f7999..f055ca311 100644 --- a/docs/reference/set_community_model.html +++ b/docs/reference/set_community_model.html @@ -79,7 +79,7 @@ mizer - 2.0.2 + 2.0.3 @@ -372,7 +372,7 @@

Contents

-

Site built with pkgdown 1.5.1.9000.

+

Site built with pkgdown 1.5.1.

diff --git a/docs/reference/set_multispecies_model.html b/docs/reference/set_multispecies_model.html index a76cd4a05..64bfcc7bf 100644 --- a/docs/reference/set_multispecies_model.html +++ b/docs/reference/set_multispecies_model.html @@ -79,7 +79,7 @@ mizer - 2.0.2 + 2.0.3 @@ -290,7 +290,7 @@

Contents

-

Site built with pkgdown 1.5.1.9000.

+

Site built with pkgdown 1.5.1.

diff --git a/docs/reference/set_species_param_default.html b/docs/reference/set_species_param_default.html index 3eaa108c4..de4169a55 100644 --- a/docs/reference/set_species_param_default.html +++ b/docs/reference/set_species_param_default.html @@ -81,7 +81,7 @@ mizer - 2.0.2 + 2.0.3 @@ -235,7 +235,7 @@

Contents

-

Site built with pkgdown 1.5.1.9000.

+

Site built with pkgdown 1.5.1.

diff --git a/docs/reference/set_trait_model.html b/docs/reference/set_trait_model.html index 1e6661b0e..321bba642 100644 --- a/docs/reference/set_trait_model.html +++ b/docs/reference/set_trait_model.html @@ -79,7 +79,7 @@ mizer - 2.0.2 + 2.0.3 @@ -407,7 +407,7 @@

Contents

-

Site built with pkgdown 1.5.1.9000.

+

Site built with pkgdown 1.5.1.

diff --git a/docs/reference/sigmoid_length.html b/docs/reference/sigmoid_length.html index 255330919..2aaa738d1 100644 --- a/docs/reference/sigmoid_length.html +++ b/docs/reference/sigmoid_length.html @@ -82,7 +82,7 @@ mizer - 2.0.2 + 2.0.3 @@ -237,7 +237,7 @@

Contents

-

Site built with pkgdown 1.5.1.9000.

+

Site built with pkgdown 1.5.1.

diff --git a/docs/reference/sigmoid_weight.html b/docs/reference/sigmoid_weight.html index 25cf6a104..59f2cdc5c 100644 --- a/docs/reference/sigmoid_weight.html +++ b/docs/reference/sigmoid_weight.html @@ -79,7 +79,7 @@ mizer - 2.0.2 + 2.0.3 @@ -226,7 +226,7 @@

Contents

-

Site built with pkgdown 1.5.1.9000.

+

Site built with pkgdown 1.5.1.

diff --git a/docs/reference/steady.html b/docs/reference/steady.html index 6d918eb86..c2f557b20 100644 --- a/docs/reference/steady.html +++ b/docs/reference/steady.html @@ -82,7 +82,7 @@ mizer - 2.0.2 + 2.0.3 @@ -268,7 +268,7 @@

Contents

-

Site built with pkgdown 1.5.1.9000.

+

Site built with pkgdown 1.5.1.

diff --git a/docs/reference/summary-MizerParams-method.html b/docs/reference/summary-MizerParams-method.html index 8870d1abb..ed057d37b 100644 --- a/docs/reference/summary-MizerParams-method.html +++ b/docs/reference/summary-MizerParams-method.html @@ -78,7 +78,7 @@ mizer - 2.0.2 + 2.0.3 @@ -222,7 +222,7 @@

Contents

-

Site built with pkgdown 1.5.1.9000.

+

Site built with pkgdown 1.5.1.

diff --git a/docs/reference/summary-MizerSim-method.html b/docs/reference/summary-MizerSim-method.html index 3e6af612c..4cf9b42a0 100644 --- a/docs/reference/summary-MizerSim-method.html +++ b/docs/reference/summary-MizerSim-method.html @@ -78,7 +78,7 @@ mizer - 2.0.2 + 2.0.3 @@ -223,7 +223,7 @@

Contents

-

Site built with pkgdown 1.5.1.9000.

+

Site built with pkgdown 1.5.1.

diff --git a/docs/reference/summary_functions.html b/docs/reference/summary_functions.html index 754a02279..06e391bf2 100644 --- a/docs/reference/summary_functions.html +++ b/docs/reference/summary_functions.html @@ -78,7 +78,7 @@ mizer - 2.0.2 + 2.0.3 @@ -206,7 +206,7 @@

Details

See also

- +
-

Site built with pkgdown 1.5.1.9000.

+

Site built with pkgdown 1.5.1.

diff --git a/docs/reference/test_dyn.html b/docs/reference/test_dyn.html index bb3358edf..4e331603d 100644 --- a/docs/reference/test_dyn.html +++ b/docs/reference/test_dyn.html @@ -78,7 +78,7 @@ mizer - 2.0.2 + 2.0.3 @@ -216,7 +216,7 @@

Contents

-

Site built with pkgdown 1.5.1.9000.

+

Site built with pkgdown 1.5.1.

diff --git a/docs/reference/truncated_lognormal_pred_kernel.html b/docs/reference/truncated_lognormal_pred_kernel.html index 190201389..23faae72d 100644 --- a/docs/reference/truncated_lognormal_pred_kernel.html +++ b/docs/reference/truncated_lognormal_pred_kernel.html @@ -79,7 +79,7 @@ mizer - 2.0.2 + 2.0.3 @@ -241,7 +241,7 @@

Contents

-

Site built with pkgdown 1.5.1.9000.

+

Site built with pkgdown 1.5.1.

diff --git a/docs/reference/upgradeParams.html b/docs/reference/upgradeParams.html index 7ae80cbf0..46e0e7f1c 100644 --- a/docs/reference/upgradeParams.html +++ b/docs/reference/upgradeParams.html @@ -49,7 +49,7 @@ mizer - 2.0.2 + 2.0.3 @@ -196,7 +196,7 @@

Upgrade MizerParams object from earlier mizer versions

Occasionally during the development of new features for mizer, the MizerParams object gains extra slots. MizerParams objects created in older versions of mizer are then no longer valid in the new -version because of the missing slots. You need to upgrade them with

params <- upgradeParams(params)
+version because of the missing slots. You need to upgrade them with

params &lt;- upgradeParams(params)

where params should be replaced by the name of your MizerParams object. This function adds the missing slots and fills them with default values. Any @@ -257,7 +257,7 @@

Contents

-

Site built with pkgdown 1.5.1.9000.

+

Site built with pkgdown 1.5.1.

diff --git a/docs/reference/upgradeSim.html b/docs/reference/upgradeSim.html index 62d8d7cbf..1e7d02d10 100644 --- a/docs/reference/upgradeSim.html +++ b/docs/reference/upgradeSim.html @@ -50,7 +50,7 @@ MizerSim class or the MizerParams class gains extra slots. MizerSim objects created in older versions of mizer are then no longer valid in the new version because of the missing slots. You need to -upgrade them withsim &lt;- upgradeSim(sim) +upgrade them withsim &amp;lt;- upgradeSim(sim) where sim should be replaced by the name of your MizerSim object." /> @@ -84,7 +84,7 @@ mizer - 2.0.2 + 2.0.3 @@ -192,7 +192,7 @@

Upgrade MizerSim object from earlier mizer versions

MizerSim class or the MizerParams class gains extra slots. MizerSim objects created in older versions of mizer are then no longer valid in the new version because of the missing slots. You need to -upgrade them with

sim <- upgradeSim(sim)
+upgrade them with

sim &lt;- upgradeSim(sim)

where sim should be replaced by the name of your MizerSim object.

@@ -252,7 +252,7 @@

Contents

-

Site built with pkgdown 1.5.1.9000.

+

Site built with pkgdown 1.5.1.

diff --git a/docs/reference/validGearParams.html b/docs/reference/validGearParams.html index 0e399e585..9de26e659 100644 --- a/docs/reference/validGearParams.html +++ b/docs/reference/validGearParams.html @@ -79,7 +79,7 @@ mizer - 2.0.2 + 2.0.3 @@ -213,8 +213,8 @@

Details not be found in the species_params dataframe, as follows:

  • If there is no gear column, each species gets its own gear, named after the species.

  • -
  • If there is no sel_func column then knife_edge is used.

  • -
  • If there is no catchability column then this is set to 1.

  • +
  • If there is no sel_func column or it is NA then knife_edge is used.

  • +
  • If there is no catchability column or it is NA then this is set to 1.

  • If the selectivity function is knife_edge and no knife_edge_size is provided, it is set to w_mat.

@@ -235,7 +235,7 @@

Contents

-

Site built with pkgdown 1.5.1.9000.

+

Site built with pkgdown 1.5.1.

diff --git a/docs/reference/validSpeciesParams.html b/docs/reference/validSpeciesParams.html index 8b07a07ec..22165aa59 100644 --- a/docs/reference/validSpeciesParams.html +++ b/docs/reference/validSpeciesParams.html @@ -6,8 +6,7 @@ -Check validity of species parameters and set defaults for missing but -required parameters — validSpeciesParams • mizer +Validate species parameter data frame — validSpeciesParams • mizer @@ -46,8 +45,7 @@ - + @@ -81,7 +79,7 @@ mizer - 2.0.2 + 2.0.3 @@ -179,8 +177,7 @@
@@ -204,6 +201,22 @@

Arg

Value

A valid species parameter data frame

+

This function throws an error if

    +
  • the species column does not exist or contains duplicates

  • +
  • the w_inf column does not exist or contains NAs or is not numeric

  • +
+ +

It sets default values if any of the following are missing or NA

    +
  • w_mat is set to w_inf/4

  • +
  • w_min is set to 0.001

  • +
  • alpha is set to 0.6

  • +
  • interaction_resource is set to 1

  • +
+ +

Any w_mat25 that is given that is not smaller than w_mat is set to +w_mat * 3^(-0.1).

+

If species_params was provided as a tibble it is converted back to an +ordinary data frame.

-

Site built with pkgdown 1.5.1.9000.

+

Site built with pkgdown 1.5.1.

diff --git a/docs/reference/validate_effort_vector.html b/docs/reference/validate_effort_vector.html index 8c530f722..82c996378 100644 --- a/docs/reference/validate_effort_vector.html +++ b/docs/reference/validate_effort_vector.html @@ -79,7 +79,7 @@ mizer - 2.0.2 + 2.0.3
@@ -221,7 +221,7 @@

Contents

-

Site built with pkgdown 1.5.1.9000.

+

Site built with pkgdown 1.5.1.

diff --git a/docs/reference/w.html b/docs/reference/w.html index 48bea2e93..c2b1bb7a8 100644 --- a/docs/reference/w.html +++ b/docs/reference/w.html @@ -79,7 +79,7 @@ mizer - 2.0.2 + 2.0.3 @@ -209,7 +209,7 @@

Value

w() returns a vector with the sizes at the start of each size bin of the community spectrum.

w_full() returns a vector with the sizes at the start of each size bin -of the resource spectrun, which typically starts at smaller sizes than +of the resource spectrum, which typically starts at smaller sizes than the community spectrum.

dw() returns a vector with the widths of the size bins of the community spectrum.

@@ -234,7 +234,7 @@

Contents

-

Site built with pkgdown 1.5.1.9000.

+

Site built with pkgdown 1.5.1.

diff --git a/docs/sitemap.xml b/docs/sitemap.xml index 47e50397c..0e884c375 100644 --- a/docs/sitemap.xml +++ b/docs/sitemap.xml @@ -223,7 +223,7 @@ https://sizespectrum.org/mizer/reference/lognormal_pred_kernel.html - https://sizespectrum.org/mizer/reference/mizer.html + https://sizespectrum.org/mizer/reference/mizer-package.html https://sizespectrum.org/mizer/reference/mizerEGrowth.html