-
Notifications
You must be signed in to change notification settings - Fork 43
/
Copy pathresource_constant.Rd
44 lines (39 loc) · 1.16 KB
/
resource_constant.Rd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/resource_dynamics.R
\name{resource_constant}
\alias{resource_constant}
\title{Keep resource abundance constant}
\usage{
resource_constant(params, n_pp, ...)
}
\arguments{
\item{params}{A \link{MizerParams} object}
\item{n_pp}{A vector of the resource abundance by size}
\item{...}{Unused}
}
\value{
Vector containing the resource number density in each size class at
the next timestep
}
\description{
If you set your resource dynamics to use this function then the resource
abundances are kept constant over time.
}
\details{
To set your model to keep the resource constant over time you do
\if{html}{\out{<div class="sourceCode">}}\preformatted{resource_dynamics(params) <- "resource_constant"
}\if{html}{\out{</div>}}
where you should replace \code{params} with the name of the variable holding your
MizerParams object.
}
\examples{
params <- NS_params
resource_dynamics(params) <- "resource_constant"
}
\seealso{
\code{\link[=setResource]{setResource()}}
Other resource dynamics functions:
\code{\link{resource_logistic}()},
\code{\link{resource_semichemostat}()}
}
\concept{resource dynamics functions}