Skip to content

Commit 5b51ce5

Browse files
committed
Improving documentation of effort argument in project().
1 parent c15a547 commit 5b51ce5

File tree

2 files changed

+18
-12
lines changed

2 files changed

+18
-12
lines changed

R/project.R

+9-6
Original file line numberDiff line numberDiff line change
@@ -51,21 +51,24 @@ NULL
5151
#'
5252
#' @note The `effort` argument specifies the level of fishing effort during the
5353
#' simulation. If it is not supplied, the initial effort stored in the params
54-
#' object is used. The effort can be specified in three different ways:
54+
#' object is used. The effort can be specified in four different ways:
5555
#' \itemize{
5656
#' \item A single numeric value. This specifies the effort of all fishing gears
5757
#' which is constant through time (i.e. all the gears have the same constant
5858
#' effort).
59+
#' \item A named vector whose names match with existing gear names.
60+
#' The values in the vector specify the constant fishing effort for those
61+
#' fishing gears, i.e. the effort is constant through time. The
62+
#' effort for gears that are not included in the effort vector is set to 0.
5963
#' \item A numerical vector which has the same length as the number of fishing
60-
#' gears. The vector must be named and the names must correspond to the gear
61-
#' names in the `MizerParams` object. The values in the vector specify the
62-
#' constant fishing effort of each of the fishing gears, i.e. the effort is
63-
#' constant through time but each gear may have a different fishing effort.
64+
#' gears. The values in the vector specify the
65+
#' constant fishing effort of each of the fishing gears, with the ordering
66+
#' assumed to be the same as in the MizerParams object.
6467
#' \item A numerical array with dimensions time x gear. This specifies the
6568
#' fishing effort of each gear at each time step. The first dimension, time,
6669
#' must be named numerically and increasing. The second dimension of the array
6770
#' must be named and the names must correspond to the gear names in the
68-
#' `MizerParams` argument. The value for the effort for a particular time
71+
#' `MizerParams` object. The value for the effort for a particular time
6972
#' is used during the interval from that time to the next time in the array.
7073
#' }
7174
#'

man/project.Rd

+9-6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)