Clarify summary output from cleanPacFIN #82
Labels
priority: high
The highest priority level in terms of what needs to be done.
status: help wanted
Help is needed
topic: code
Related to R code within this package
type: refactor
Changes to the codebase or documentation that do NOT alter the values returned, e.g., styling.
Is your feature request related to a problem? Please describe.
Yes. I had a hard time figuring out what elements were cleaned from pacfin bds and which were not.
Describe the solution you'd like
Can the summary output from cleanPacFIN (e.g. that added below) specify which concerning items are actually removed within it? Take canary bds for example
The samples 'cleaned' include the 9108 samples with "bad" sample type, the 199 with "bad" sample method, and an unspecified 8828 samples taken in areas outside the US. All other elements were not cleaned.
I have a few suggestions:
Describe alternatives you've considered
Specify in the document what checks result in removal if CLEAN. I read the CLEAN section in the documentation for cleanPacFIN and that didn't specify. If anything it confused me more because it says
"many early length compositions do not have information on the weight of fish that were sampled, and thus, there is no way to infer how much the entire sample weighed or how much the tow/trip weighed. Therefore, these data cannot be expanded and are removed using CLEAN = TRUE"
Based on the code the weight check only applies to Oregon. I would recommend that be clarified in the documentation as well.
Additional context
I also noticed that the output "N without length and Age: 61614" should perhaps be "N without one of length or Age: 61614" based on the code
The text was updated successfully, but these errors were encountered: