Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@hillarymarler
Copy link
Collaborator

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.

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
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
@hillarymarler
Copy link
Collaborator Author

@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
Potential fix for TADA_FieldValuesPie
Needed update after unit conversion changes
@hillarymarler
Copy link
Collaborator Author

@wokenny13 - this is ready for review.

@wokenny13
Copy link
Collaborator

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.

@hillarymarler
Copy link
Collaborator Author

@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.

@hillarymarler hillarymarler merged commit da71bcc into develop Jun 20, 2024
@hillarymarler hillarymarler deleted the 471-tada_convertresultunits-is-overwriting-tadamethodspeciationname-with-na branch June 20, 2024 17:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

TADA_ConvertResultUnits is overwriting TADA.MethodSpeciationName with NA

3 participants