A valid effort vector is a named vector with one entry for each gear, with the gear names in the same order as in the params object.
validEffortVector(effort, params)
An vector or scalar.
A MizerParams object
A valid effort vector with one entry for each gear, named by gear, in the same order as in the params object.
The function also accepts an effort
that is not yet valid:
a scalar, which is then replicated for each gear
an unnamed vector, which is then assumed to be in the same order as the gears in the params object
a named vector in which the gear names have a different order than in the params object. This is then sorted correctly.
An effort
argument of the wrong length or with names not corresponding to
gears will produce an error.