Skip to content

Commit

Permalink
Update UnitConversions.R
Browse files Browse the repository at this point in the history
Changed order of columns to make it more clear on which columns are using the conversion factor
  • Loading branch information
wokenny13 committed Sep 16, 2024
1 parent 9e04979 commit 4b31207
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/UnitConversions.R
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,8 @@ TADA_CreateUnitRef <- function(.data, print.message = TRUE) {
dplyr::full_join(tada.wqx, by = names(tada.targets)) %>%
dplyr::rename(TADA.WQXUnitConversionFactor = Conversion.Factor,
TADA.WQXUnitConversionCoefficient = Conversion.Coefficient) %>%
dplyr::select(TADA.CharacteristicName, TADA.ResultMeasure.MeasureUnitCode,
TADA.Target.ResultMeasure.MeasureUnitCode, ResultMeasure.MeasureUnitCode,
dplyr::select(TADA.CharacteristicName, ResultMeasure.MeasureUnitCode,
TADA.ResultMeasure.MeasureUnitCode, TADA.Target.ResultMeasure.MeasureUnitCode,
TADA.WQXUnitConversionFactor, TADA.WQXUnitConversionCoefficient, CharUnit)

# remove intermediate objects
Expand Down

0 comments on commit 4b31207

Please sign in to comment.