Skip to content

Commit

Permalink
Update continuous data flag
Browse files Browse the repository at this point in the history
for consistency with package
  • Loading branch information
cristinamullin committed Apr 2, 2024
1 parent a546eea commit 9537dc7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion R/utils_flag_functions.R
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ applyFlags <- function(in_table, orgs) {
# out <- out

# Aggregated continuous data
out <- TADA::TADA_FindContinuousData(out, clean = FALSE)
out <- TADA::TADA_FlagContinuousData(out, clean = FALSE)

# Above WQX Upper Threshold
out <- TADA::TADA_FlagAboveThreshold(out, clean = FALSE)
Expand Down
2 changes: 1 addition & 1 deletion inst/flag_prompts.csv
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Order,Level,Prompt,flagType
10,Optional,Uncommon or suspect characteristic and analytical method combination (see TADA.AnalyticalMethod.Flag),Uncommon or suspect characteristic and analytical method combination
11,Optional,"Quality Assurance Project Plan (QAPPApprovedIndicator) indicates ""N"" (not approved) or NA","Quality Assurance Project Plan (QAPPApprovedIndicator) indicates ""N"" (not approved) or NA"
12,Optional,Quality Assurance Project Plan (QAPP) document is not available via the ProjectFileUrl (see TADA.QAPPDocAvailable),Quality Assurance Project Plan (QAPP) document is not available via the ProjectFileUrl
13,Optional,"Metadata indicates result(s) are aggregate, high-frequency continuous sensor results, not discrete samples (see TADA.AggregatedContinuousData.Flag)","Metadata indicates result(s) are aggregate, high-frequency continuous sensor results, not discrete samples"
13,Optional,Metadata indicates result(s) are continuous (high-frequency sensor measurements or statistics) not discrete (see TADA.ContinuousData.Flag),Metadata indicates result(s) are continuous (high frequency sensor results or statistics) not discrete
14,Optional,"Result value(s) above the national threshold for a given characteristic, possibly indicating non-sensical value(s) (see TADA.ResultValueAboveUpperThreshold.Flag)","Result value(s) above the national upper threshold for a given characteristic, possibly indicating non-sensical value(s)"
15,Optional,"Result value(s) below the national threshold for a given characteristic, possibly indicating non-sensical value(s) (see TADA.ResultValueBelowLowerThreshold.Flag)","Result value(s) below the national lower threshold for a given characteristic, possibly indicating non-sensical value(s)"
16,Optional,Coordinates are outside of the United States (see TADA.InvalidCoordinates.Flag),Coordinates are outside of the United States
Expand Down
6 changes: 3 additions & 3 deletions inst/flag_tests.csv
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
flagType,columnName,flagValue,keep,remove
flagType,columnName,flagValue,keep,remove
"Quality Assurance Project Plan (QAPPApprovedIndicator) indicates ""N"" (not approved) or NA",QAPPApprovedIndicator,NA,0,1
"Quality Assurance Project Plan (QAPPApprovedIndicator) indicates ""N"" (not approved) or NA",QAPPApprovedIndicator,Y,0,0
"Quality Assurance Project Plan (QAPPApprovedIndicator) indicates ""N"" (not approved) or NA",QAPPApprovedIndicator,N,0,1
Expand All @@ -8,8 +8,8 @@
"ActivityTypeCode indicates result value is a QC replicate, duplicate, or blank",TADA.ActivityType.Flag,QC_calibration,0,1
"ActivityTypeCode indicates result value is a QC replicate, duplicate, or blank",TADA.ActivityType.Flag,QC_blank,0,1
"ActivityTypeCode indicates result value is a QC replicate, duplicate, or blank",TADA.ActivityType.Flag,QC_other,0,1
"Metadata indicates result(s) are aggregate, high-frequency continuous sensor results, not discrete samples",TADA.AggregatedContinuousData.Flag,Discrete,0,0
"Metadata indicates result(s) are aggregate, high-frequency continuous sensor results, not discrete samples",TADA.AggregatedContinuousData.Flag,Continuous,0,1
"Metadata indicates result(s) are aggregate, high-frequency continuous sensor results, not discrete samples",TADA.ContinuousData.Flag,Discrete,0,0
"Metadata indicates result(s) are aggregate, high-frequency continuous sensor results, not discrete samples",TADA.ContinuousData.Flag,Continuous,0,1
Uncommon or suspect characteristic and analytical method combination,TADA.AnalyticalMethod.Flag,Not Reviewed,0,0
Uncommon or suspect characteristic and analytical method combination,TADA.AnalyticalMethod.Flag,Invalid,0,1
Uncommon or suspect characteristic and analytical method combination,TADA.AnalyticalMethod.Flag,Valid,0,0
Expand Down

0 comments on commit 9537dc7

Please sign in to comment.