Skip to content
Snippets Groups Projects
Commit c5d160d6 authored by Laura A DeCicco's avatar Laura A DeCicco
Browse files

Cleaned up qualifier line.

parent 147062c9
No related branches found
No related tags found
No related merge requests found
......@@ -15,19 +15,24 @@
#' rawSampleSelect <- processQWData(rawSample)
processQWData <- function(data){
qualifier <- ifelse(
(
(
data$ResultDetectionConditionText == "Not Detected"
& length(grep("Lower", data$DetectionQuantitationLimitTypeName)) > 0
)
|
(
data$ResultMeasureValue < data$DetectionQuantitationLimitMeasure.MeasureValue
& data$ResultValueTypeName == "Actual"
)
),"<",""
)
qualifier <- ifelse((rawData$ResultDetectionConditionText == "Not Detected" |
rawData$ResultDetectionConditionText == "Detected Not Quantified" |
data$ResultMeasureValue < data$DetectionQuantitationLimitMeasure.MeasureValue),"<","")
# qualifier <- ifelse(
# (
# (
# data$ResultDetectionConditionText == "Not Detected"
# & length(grep("Lower", data$DetectionQuantitationLimitTypeName)) > 0
# )
# |
# (
# data$ResultMeasureValue < data$DetectionQuantitationLimitMeasure.MeasureValue
# & data$ResultValueTypeName == "Actual"
# )
# ),"<",""
# )
correctedData<-ifelse((nchar(qualifier)==0),data$ResultMeasureValue,data$DetectionQuantitationLimitMeasure.MeasureValue)
test <- data.frame(data$USGSPCode)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment