F.reclassifyLS | R Documentation |
Reclassify lifeStage via forklength into groups specified via
dataframe forkLengthCutPoints
, as specified in the Global
Environment.
F.reclassifyLS(catch)
catch |
A catch dataframe originating from a catch-query sequence. At
the least, |
Generally speaking, the process by which a new lifeStage
variable is constructed is straight-forward. Care must be taken, however,
to ensure that records with no recorded forkLength
, i.e., those
containing a value of NA
, are mapped to "Unassigned"
in the
new lifeStage
variable. This process is programmed in order to
ensure correct processing of plus counts via function F.assign.1dim
,
for records containing valid FinalRun
, but not lifeStage
, or
forkLength
, as the case may be.
A dataframe with original variable lifeStage
values containing
"Fry
," "Parr
," and "Smolt
" into the label values
specified via the Global environment dataframe forkLengthCutPoints
.
See function GlobalVars
.
GlobalVars
, F.get.catch.data
, F.assign.1dim
## Not run: catchWithNewLifeStageCats <- reclassifyLS(catch) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.