F.reclassifyLS: F.reclassifyLS

F.reclassifyLSR Documentation

F.reclassifyLS

Description

Reclassify lifeStage via forklength into groups specified via dataframe forkLengthCutPoints, as specified in the Global Environment.

Usage

F.reclassifyLS(catch)

Arguments

catch

A catch dataframe originating from a catch-query sequence. At the least, catch must contain variables entitled forkLength and lifeStage. See function F.get.catch.data.

Details

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.

Value

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.

See Also

GlobalVars, F.get.catch.data, F.assign.1dim

Examples

 
## Not run: 
catchWithNewLifeStageCats <- reclassifyLS(catch)

## End(Not run)

tmcd82070/CAMP_RST documentation built on April 6, 2022, 12:07 a.m.