Closed ben-wetherill closed 2 years ago
@ben-wetherill I think I've got these sorted out now (this commit https://github.com/massbays-tech/MassWateR/commit/8809a2385c3b9aa438a2444bc76ca106bbd65e05 and those referenced above). Can you please run your checks again to verify?
All examples are from new 6/9/22 results file.
From original list:
Lab Blank
value). Looking at your code, I think you have it backwards. See example Field Blank, CND-036, 6/13/21, BDL, 0.02. The MDL column currently shows 0.01, but we need to know that the detection limit was not 0.01 in this case.New issues:
@ben-wetherill thanks for the additional checks and issues. I think they're all addressed now, can you please verify when able? The new results file from 6/9/22 is also in the package.
In tabMWRacc(accck="Field Blanks", type="individual") there is still an issue with the value in the Threshold column. Example: E.coli, 9/13/21, ABT-162, 128, 50, threshold should show 10 because result value not BDL. Also, TP, 6/15/21, CND-036, 0.008, 0.001, threshold should show 0.01 because result value not BDL. Here is the logic for the threshold column:
DQO Thresh = DQO Field/Lab Blank if DQO Field/Lab Blank not BDL, else DQO MDL.
If result value is BDL, then...
If Quantitation Limit not NA, then show Quantitation Limit
Else show DQO Thresh.
Else show DQO Thresh.
And the logic for the Hit/Miss column:
If result value is BDL, then no MISS,
Else if result value < DQO Thresh, then no MISS,
Else, if result value = DQO Thresh AND DQO Field/Lab Blank uses <=, then no MISS,
Else MISS.
From second list:
New issues:
@ben-wetherill all should be addressed now, hopefully I've got it sorted out! Please let me know if anything looks off.
The blanks threshold and hit/miss logic is working well.
From third list:
This looks good now.
Testing tabMWRacc(type = "individual"):
Error: Problem with
mutate()input
Hit/Miss. x <text>:1:5: unexpected numeric constant 1: 120 0.01 ^ i Input
Hit/Missis
dplyr::case_when(...). i The error occurred in row 20.