You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Also line 217, where targets are only assigned if NA. # find places where metadata will be changed and add targets
harm.ref$TADA.Harmonized.Flag <- ifelse(!is.na(harm.ref$Target.TADA.CharacteristicName) | !is.na(harm.ref$Target.TADA.ResultSampleFractionText) | !is.na(harm.ref$Target.TADA.MethodSpecificationName) | !is.na(harm.ref$Target.TADA.ResultMeasure.MeasureUnitCode), TRUE, FALSE)
This needs to be adjusted to also catch situations where the fraction or speciation are converted to NA from something else. This could be run as a separate ifelse statement below this one that mirrors the logic used in line 246 of this function.
Reminders for TADA contributors addressing this issue
New features should include all of the following work:
Create the function/code.
Document all code using comments to describe what is does.
Create tests in tests folder.
Create help file using roxygen2 above code.
Create working examples in help file (via roxygen2).
Add to appropriate vignette (or create new one).
The text was updated successfully, but these errors were encountered:
Describe the bug
Rows with fraction and speciation that need to be converted FROM some text TO NA are not flagged as HARMONIZED in the TADA.Harmonized.Flag column.
In TADA_HarmonizeSynonyms, @cristinamullin pointed out:
Also line 217, where targets are only assigned if NA. # find places where metadata will be changed and add targets
harm.ref$TADA.Harmonized.Flag <- ifelse(!is.na(harm.ref$Target.TADA.CharacteristicName) | !is.na(harm.ref$Target.TADA.ResultSampleFractionText) | !is.na(harm.ref$Target.TADA.MethodSpecificationName) | !is.na(harm.ref$Target.TADA.ResultMeasure.MeasureUnitCode), TRUE, FALSE)
This needs to be adjusted to also catch situations where the fraction or speciation are converted to NA from something else. This could be run as a separate ifelse statement below this one that mirrors the logic used in line 246 of this function.
Reminders for TADA contributors addressing this issue
New features should include all of the following work:
Create the function/code.
Document all code using comments to describe what is does.
Create tests in tests folder.
Create help file using roxygen2 above code.
Create working examples in help file (via roxygen2).
Add to appropriate vignette (or create new one).
The text was updated successfully, but these errors were encountered: