-
Notifications
You must be signed in to change notification settings - Fork 23
502 tadacomparabledataidentifier column showing na for the tadaresultmeasuremeasureunitcode portion of its string pasting #503
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
502 tadacomparabledataidentifier column showing na for the tadaresultmeasuremeasureunitcode portion of its string pasting #503
Conversation
added missing TADA_CreateComparableID
Created Add_USGS() internal function to make sure all possible TADA.ResultMeasure.MeasureUnitCodes are included without user having to enter all the possible USGS combinations
|
I need to update branch refs in vignettes in order to pass checks. I will do that on Monday, |
|
@wokenny13 and @cefergus - this is now passing checks and ready for review. |
@wokenny13 - the missing units are related to results where there is no unit (or value) provided for the detection quantitation limit. So even when TADA_SimpleCensoredMethods is run, there is no unit/value to pull. It is strange to see - maybe something we should bring up with WQP team. Working off the example you provided, see: |
|
I figured something along the lines of that was the case, but just wanted to confirm. Do these results get flagged at all? It represents a small portion of the dataset, but might be good to bring up to the WQP team. |
|
I ran a test dataset, but I seem to still be seeing speciation name appearing at the end where the units should be.
|
|
Thanks for catching this - I had made some minor changes related to issues happening with NAs in an example data set. Now if there are NOT NAs in certain columns there are issues it seems. I'll work on an update to fix this new bug. |
|
@wokenny13 - looks like I've got a couple of check errors to work through first, so you can wait until I've got those resolved. |
Addressed test failure
|
@wokenny13 - check errors have been resolved. |
wokenny13
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I ran through some sample datasets. They seem to be functioning correctly. I am good with merging the changes in.
This pull requests fixes bug with USGS speciation occurring as part of units in TADA_ComparableDataIdentifier. Units of "NA" may still appear in data frame if TADA_SimpleCensoredMethods has not yet been run. Once TADA_SimpleCensoredMethods is run, a new TADA.ComparableDataIdentifier is created which includes units for any result values that have been estimated from detection limits.