-
Notifications
You must be signed in to change notification settings - Fork 23
471 tada convertresultunits is overwriting tadamethodspeciationname with na #486
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
471 tada convertresultunits is overwriting tadamethodspeciationname with na #486
Conversation
Work on selecting required columns from usgs ref to facilitate assigning speciation correctly
Added a column with just the base unit code to usgs ref to facilitate custom conversion
Work to account for method speciation from wqx/usgs results correctly in TADA_CreateUnitRef
Correctly assigns method speciation name for usgs results for user supplied and tada ref
Changes to incorporate method speciation from create unit ref
Length error, not corrected yet
…g-tadamethodspeciationname-with-na
Not complete yet, still issues with units
Detection limit TADA units are now being shown correctly (no speciation in units)
Added apply autoclean = TRUE for UT nutrient example. Updated all example data sets to reflect changes in convert result units which affect autoclean.
Updated comparable ID in vignette for assessment unit use case due to changes in comparable data idea resulting from convert result units changes.
Updates to examples due to changes in TADA.ComparableDataIdentifier
Expanded list of joining columns (include method speciation) to prevent creation of new columns
Had to add TADA.MethodSpeciationName to TADA_CreateUnitRef in order to have convert result units work
Added additional condition to check is ref is a data frame before checking for ref equals tada or wqx
|
@wokenny13 - if you have time to take a look at these changes and run TADA_ConvertResultUnits on a few example data sets that would be great. Thanks! |
Reference correct branch
Simplified test.
Potential fix for TADA_FieldValuesPie
Needed update after unit conversion changes
|
@wokenny13 - this is ready for review. |
|
Ran through a few example datasets for different states and for both Nitrogen and Phosphorus. The updates have fixed the overwriting issues for these examples that I ran. |
…g-tadamethodspeciationname-with-na
|
@wokenny13 - thanks for running some example data sets. The checks are re-running due to a new vignette I merged into the develop branch. Once all those checks have passed, I will merge in the unit conversion changes. |
Updates to fix overwrite of tada method speciation name with na. In order to get this to work correctly, I had to add TADA.MethodSpeciationName as a column in the output of TADA_CreateUnitRef.