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

Skip to content

Conversation

@wokenny13
Copy link
Collaborator

@wokenny13 wokenny13 commented Nov 24, 2025

some minor updates to handle errors in the mod 3 vignette.

  • minor code cleanup
  • mod3 vignette error handling - examples should run fine now (please review). Test out TADA_CreateParamRef with multiple org_id, and test with auto_assign = "Org" or "All" to see if the output is running as expected. Ex. MT.ParamRef.All <- TADA_CreateParamRef( tada.MT.clean, org_id = c("MTDEQ", "MDE_EASP", "21ARIZ"), auto_assign = "Org", excel = FALSE )
  • TADA_DefineCriteriaMethodology() handling of invalid arg input combos was done. This function can now handle multiple org_ids correctly as well. See ExampleMod3AltOptions vignette and test out the scenarios for multiple org_id. Ex.
  • MT.Criteria.auto3 <- TADA_DefineCriteriaMethodology( tada.MT.clean, org_id = c("MTDEQ","MDE_EASP", "21ARIZ"), # add other org_id to see output auto_assign = TRUE, epa304a = TRUE, displayUniqueId = TRUE, excel = FALSE )

Comment on lines 924 to 925
TADA_CreateParamRef <- function(.data, org_id = NULL, paramRef = NULL, auto_assign = c("None", "All", "Org"),
excel = FALSE, overwrite = FALSE) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[air] reported by reviewdog 🐶

Suggested change
TADA_CreateParamRef <- function(.data, org_id = NULL, paramRef = NULL, auto_assign = c("None", "All", "Org"),
excel = FALSE, overwrite = FALSE) {
TADA_CreateParamRef <- function(
.data,
org_id = NULL,
paramRef = NULL,
auto_assign = c("None", "All", "Org"),
excel = FALSE,
overwrite = FALSE
) {

CreateParamRef <- TADA_param %>%
dplyr::mutate(ATTAINS.ParameterName = as.character(NA)) %>%
dplyr::select(
TADA.CharacteristicName, TADA.ComparableDataIdentifier, ATTAINS.OrganizationIdentifier,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[air] reported by reviewdog 🐶

Suggested change
TADA.CharacteristicName, TADA.ComparableDataIdentifier, ATTAINS.OrganizationIdentifier,
TADA.CharacteristicName,
TADA.ComparableDataIdentifier,
ATTAINS.OrganizationIdentifier,

) %>%
dplyr::mutate(ATTAINS.ParameterName = ATTAINS.ParameterName.y) %>%
dplyr::select(
TADA.ComparableDataIdentifier, ATTAINS.OrganizationIdentifier,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[air] reported by reviewdog 🐶

Suggested change
TADA.ComparableDataIdentifier, ATTAINS.OrganizationIdentifier,
TADA.ComparableDataIdentifier,
ATTAINS.OrganizationIdentifier,

dplyr::bind_rows(paramRef[,c("ATTAINS.OrganizationIdentifier", "TADA.ComparableDataIdentifier", "ATTAINS.ParameterName", "Flag.ParameterInput")]) %>%
dplyr::mutate(
ATTAINS.FlagParameterName = dplyr::case_when(
ATTAINS.ParameterName == "Not Applicable for Analysis." | is.na(ATTAINS.ParameterName) ~
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[air] reported by reviewdog 🐶

Suggested change
ATTAINS.ParameterName == "Not Applicable for Analysis." | is.na(ATTAINS.ParameterName) ~
ATTAINS.ParameterName == "Not Applicable for Analysis." |
is.na(ATTAINS.ParameterName) ~

Comment on lines 1857 to +1858
dplyr::select(ATTAINS.OrganizationIdentifier, ATTAINS.ParameterName, ATTAINS.UseName, IncludeOrExclude) %>%
dplyr::left_join(paramRef, by = c("ATTAINS.OrganizationIdentifier", "ATTAINS.ParameterName", "IncludeOrExclude"))
dplyr::left_join(paramRef, by = c("ATTAINS.OrganizationIdentifier", "ATTAINS.ParameterName"))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[air] reported by reviewdog 🐶

Suggested change
dplyr::select(ATTAINS.OrganizationIdentifier, ATTAINS.ParameterName, ATTAINS.UseName, IncludeOrExclude) %>%
dplyr::left_join(paramRef, by = c("ATTAINS.OrganizationIdentifier", "ATTAINS.ParameterName", "IncludeOrExclude"))
dplyr::left_join(paramRef, by = c("ATTAINS.OrganizationIdentifier", "ATTAINS.ParameterName"))
dplyr::select(
ATTAINS.OrganizationIdentifier,
ATTAINS.ParameterName,
ATTAINS.UseName,
IncludeOrExclude
) %>%
dplyr::left_join(
paramRef,
by = c("ATTAINS.OrganizationIdentifier", "ATTAINS.ParameterName")
)

dplyr::left_join(paramRef, by = c("ATTAINS.OrganizationIdentifier", "ATTAINS.ParameterName", "IncludeOrExclude"))
dplyr::left_join(paramRef, by = c("ATTAINS.OrganizationIdentifier", "ATTAINS.ParameterName"))
} else {
print("IncludeOrExclude was not found as a column name in your user supplied, assuming all parameter and uses are applicable for your analysis.")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[air] reported by reviewdog 🐶

Suggested change
print("IncludeOrExclude was not found as a column name in your user supplied, assuming all parameter and uses are applicable for your analysis.")
print(
"IncludeOrExclude was not found as a column name in your user supplied, assuming all parameter and uses are applicable for your analysis."
)


# If user supplies criteria methods table, then auto_assign = T for any non-matched values
if (!is.null(criteriaMethods)) {
print("A criteriaMethods table was provided. auto_assign will be set to 'TRUE' to determine any missing or non-matching inputs.")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[air] reported by reviewdog 🐶

Suggested change
print("A criteriaMethods table was provided. auto_assign will be set to 'TRUE' to determine any missing or non-matching inputs.")
print(
"A criteriaMethods table was provided. auto_assign will be set to 'TRUE' to determine any missing or non-matching inputs."
)

# Invalid function input combos - MLSummaryRef and auto_assign = TRUE cannot be used together
if (!is.null(MLSummaryRef) && auto_assign == TRUE) {
stop("TADA_DefineCriteriaMethodology: MLSummaryRef is provided and autofill = TRUE are not valid function argument input combinations.")
stop("TADA_DefineCriteriaMethodology: MLSummaryRef is provided and auto_assign = TRUE are not valid function argument input combinations.")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[air] reported by reviewdog 🐶

Suggested change
stop("TADA_DefineCriteriaMethodology: MLSummaryRef is provided and auto_assign = TRUE are not valid function argument input combinations.")
stop(
"TADA_DefineCriteriaMethodology: MLSummaryRef is provided and auto_assign = TRUE are not valid function argument input combinations."
)

wokenny13 and others added 2 commits November 24, 2025 13:21
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
run styler, keep dataframe type, and explicit dplyr package call fix.
Comment on lines +1187 to +1188
dplyr::select(ATTAINS.OrganizationIdentifier, TADA.ComparableDataIdentifier, ATTAINS.ParameterName) %>%
dplyr::mutate(Flag.ParameterInput = "This crosswalk was provided through a user supplied table") %>%
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[air] reported by reviewdog 🐶

Suggested change
dplyr::select(ATTAINS.OrganizationIdentifier, TADA.ComparableDataIdentifier, ATTAINS.ParameterName) %>%
dplyr::mutate(Flag.ParameterInput = "This crosswalk was provided through a user supplied table") %>%
dplyr::select(
ATTAINS.OrganizationIdentifier,
TADA.ComparableDataIdentifier,
ATTAINS.ParameterName
) %>%
dplyr::mutate(
Flag.ParameterInput = "This crosswalk was provided through a user supplied table"
) %>%

Comment on lines +1192 to +1194
dplyr::select(ATTAINS.OrganizationIdentifier, TADA.ComparableDataIdentifier, ATTAINS.ParameterName, Flag.ParameterInput) %>%
dplyr::filter(!TADA.ComparableDataIdentifier %in% paramRef$TADA.ComparableDataIdentifier) %>%
dplyr::bind_rows(paramRef[, c("ATTAINS.OrganizationIdentifier", "TADA.ComparableDataIdentifier", "ATTAINS.ParameterName", "Flag.ParameterInput")]) %>%
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[air] reported by reviewdog 🐶

Suggested change
dplyr::select(ATTAINS.OrganizationIdentifier, TADA.ComparableDataIdentifier, ATTAINS.ParameterName, Flag.ParameterInput) %>%
dplyr::filter(!TADA.ComparableDataIdentifier %in% paramRef$TADA.ComparableDataIdentifier) %>%
dplyr::bind_rows(paramRef[, c("ATTAINS.OrganizationIdentifier", "TADA.ComparableDataIdentifier", "ATTAINS.ParameterName", "Flag.ParameterInput")]) %>%
dplyr::select(
ATTAINS.OrganizationIdentifier,
TADA.ComparableDataIdentifier,
ATTAINS.ParameterName,
Flag.ParameterInput
) %>%
dplyr::filter(
!TADA.ComparableDataIdentifier %in%
paramRef$TADA.ComparableDataIdentifier
) %>%
dplyr::bind_rows(paramRef[, c(
"ATTAINS.OrganizationIdentifier",
"TADA.ComparableDataIdentifier",
"ATTAINS.ParameterName",
"Flag.ParameterInput"
)]) %>%

Comment on lines 1208 to 1209
TADA.ComparableDataIdentifier, ATTAINS.OrganizationIdentifier, ATTAINS.ParameterName,
ATTAINS.FlagParameterName, Flag.ParameterInput
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[air] reported by reviewdog 🐶

Suggested change
TADA.ComparableDataIdentifier, ATTAINS.OrganizationIdentifier, ATTAINS.ParameterName,
ATTAINS.FlagParameterName, Flag.ParameterInput
TADA.ComparableDataIdentifier,
ATTAINS.OrganizationIdentifier,
ATTAINS.ParameterName,
ATTAINS.FlagParameterName,
Flag.ParameterInput


# remove intermediate object Flag1
rm(Flag1, Flag2)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[air] reported by reviewdog 🐶

Suggested change

#' @return Updated sysdata.rda with updated ATTAINSParamToWQPCharRef object
#'
#' @export
TADA_GetATTAINSParamToWQPCharRef <- function(charAliasType = c("All", "ATTAINS")) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[air] reported by reviewdog 🐶

Suggested change
TADA_GetATTAINSParamToWQPCharRef <- function(charAliasType = c("All", "ATTAINS")) {
TADA_GetATTAINSParamToWQPCharRef <- function(
charAliasType = c("All", "ATTAINS")
) {

Comment on lines +491 to 493
AssessPeriod = as.character(NA), AssessPeriodStartDate = as.Date(NA), AssessPeriodEndDate = as.Date(NA),
Season = as.character(NA), SeasonStartDate = as.Date(NA), SeasonEndDate = as.Date(NA),
DistrCount = as.numeric(NA), DistrPeriod = as.character(NA), DistrMinSample = as.numeric(NA), Notes = as.character(NA)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[air] reported by reviewdog 🐶

Suggested change
AssessPeriod = as.character(NA), AssessPeriodStartDate = as.Date(NA), AssessPeriodEndDate = as.Date(NA),
Season = as.character(NA), SeasonStartDate = as.Date(NA), SeasonEndDate = as.Date(NA),
DistrCount = as.numeric(NA), DistrPeriod = as.character(NA), DistrMinSample = as.numeric(NA), Notes = as.character(NA)
AssessPeriod = as.character(NA),
AssessPeriodStartDate = as.Date(NA),
AssessPeriodEndDate = as.Date(NA),
Season = as.character(NA),
SeasonStartDate = as.Date(NA),
SeasonEndDate = as.Date(NA),
DistrCount = as.numeric(NA),
DistrPeriod = as.character(NA),
DistrMinSample = as.numeric(NA),
Notes = as.character(NA)

Comment on lines 65 to 67
use_name = USE_CLASS_NAME_LOCATION_ETC, CRITERION_VALUE,
CRITERIATYPEAQUAHUMHLTH, CRITERIATYPEFRESHSALTWATER,
CRITERIATYPE_ACUTECHRONIC, CRITERIATYPE_WATERORG, UNIT_NAME
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[air] reported by reviewdog 🐶

Suggested change
use_name = USE_CLASS_NAME_LOCATION_ETC, CRITERION_VALUE,
CRITERIATYPEAQUAHUMHLTH, CRITERIATYPEFRESHSALTWATER,
CRITERIATYPE_ACUTECHRONIC, CRITERIATYPE_WATERORG, UNIT_NAME
use_name = USE_CLASS_NAME_LOCATION_ETC,
CRITERION_VALUE,
CRITERIATYPEAQUAHUMHLTH,
CRITERIATYPEFRESHSALTWATER,
CRITERIATYPE_ACUTECHRONIC,
CRITERIATYPE_WATERORG,
UNIT_NAME

#' @export
TADA_GetCriteriaSearchToolRef <- function(){
TADA_GetCriteriaSearchToolRef <- function() {
CST.raw <- openxlsx::read.xlsx("https://cfpub.epa.gov/wqsits/wqcsearch/criteria-search-tool-data.xlsx")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[air] reported by reviewdog 🐶

Suggested change
CST.raw <- openxlsx::read.xlsx("https://cfpub.epa.gov/wqsits/wqcsearch/criteria-search-tool-data.xlsx")
CST.raw <- openxlsx::read.xlsx(
"https://cfpub.epa.gov/wqsits/wqcsearch/criteria-search-tool-data.xlsx"
)

# extract unique ATTAINS parameter names
ref <- ATTAINS.raw[, "name"]
old <- utils::read.csv(system.file("extdata", "ATTAINSParamToWQPCharRef.csv", package = "EPATADA"))[,"ATTAINS.ParameterName"]
old <- utils::read.csv(system.file("extdata", "ATTAINSParamToWQPCharRef.csv", package = "EPATADA"))[, "ATTAINS.ParameterName"]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[air] reported by reviewdog 🐶

Suggested change
old <- utils::read.csv(system.file("extdata", "ATTAINSParamToWQPCharRef.csv", package = "EPATADA"))[, "ATTAINS.ParameterName"]
old <- utils::read.csv(system.file(
"extdata",
"ATTAINSParamToWQPCharRef.csv",
package = "EPATADA"
))[, "ATTAINS.ParameterName"]

dplyr::distinct()
ref <- CST$POLLUTANT_NAME
old <- utils::read.csv(system.file("extdata", "CriteriaSearchToolRef.csv", package = "EPATADA"))[,"POLLUTANT_NAME"]
old <- utils::read.csv(system.file("extdata", "CriteriaSearchToolRef.csv", package = "EPATADA"))[, "POLLUTANT_NAME"]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[air] reported by reviewdog 🐶

Suggested change
old <- utils::read.csv(system.file("extdata", "CriteriaSearchToolRef.csv", package = "EPATADA"))[, "POLLUTANT_NAME"]
old <- utils::read.csv(system.file(
"extdata",
"CriteriaSearchToolRef.csv",
package = "EPATADA"
))[, "POLLUTANT_NAME"]

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[air] reported by reviewdog 🐶

EPATADA/R/CriteriaMethods.R

Lines 487 to 489 in 60c0884

MagnitudeValueLower = as.numeric(NA), MagnitudeValueUpper = as.numeric(NA), MagnitudeUnit = as.character(NA),
DurationValue = as.numeric(NA), DurationUnit = as.character(NA), DurationMethod = as.character(NA),
FreqValue = as.numeric(NA), FreqMethod = as.character(NA),

@github-actions
Copy link
Contributor

github-actions bot commented Nov 24, 2025

coverage-report

File Coverage Missing
All files 35%
R/ATTAINSCrosswalks.R 23% 64-741 931-941 945-949 954-957 962 967-970 977-980 985-1006 1014-1024 1056-1059 1186-1210 1252 1259-1437 1605-1617 1621-1624 1629-1631 1659-1662 1673-1676 1684-1688 1700-1704 1716-1722 1727-1738 1744 1752-1755 1845-1851 1856-1858 1963 1970-2141 2321-2706 2831-2834 2849 2857-2860 2867-2885 2893-2897 2908-2912 2928-2990 2994-3000 3037-3127 3132-3135 3140-3234
R/ATTAINSRefTables.R 0% 22-519
R/autoClean.R 85% 145-146 230-236 364-365 375-379
R/autoFilter.R 0% 27-430
R/CensoredDataSuite.R 90% 52-53 143 173-174 216-218 408-409 414 417 425 453-457 460-461 467-469
R/CriteriaComparison.R 89% 159-161 166 176 223-241
R/CriteriaMethods.R 23% 155 175-176 181 186 192-251 408-410 426-428 533-675 681-717 739-990 1009-1177
R/CriteriaRefTables.R 0% 26-138
R/DataDiscoveryRetrieval.R 33% 197 206-211 225-230 240-245 251 255 270-676 690 698 700 704-707 710 716 718 722 724 730 734 736 746 748 752 758 760 764 766 771 773 777 783-786 789 801-809 822-828 857-865 879-887 907 1001-1033 1138-1145 1236-1272 1360-1363 1415-1574
R/DepthProfile.R 0% 96-1471
R/Figures.R 0% 64-1519
R/GeospatialFunctions.R 30% 163-165 176-180 184 239 277 321-547 688-689 695-698 761-766 770 778-921 926-1110 1278-1289 1306-1308 1310 1338 1344-1388 1415-1417 1495-1578 1588-2122 2202 2245 2266-2587 2783-2791 2839 2843 2847 2868-2912 2976-3035 3040-3064 3141-3733
R/MaintenanceScheduled.R 0% 42-366
R/RequiredCols.R 16% 358-579
R/ResultFlagsDependent.R 64% 57 62 95-99 119-123 219 248-250 267-269 276 292-303 398 405 412 420 480 486 502-511 577 589-596 618 629-633 700-787 882 931-939 960 964 970-974
R/ResultFlagsIndependent.R 63% 69 75 111-137 240 245 249 253 263 332-333 345-371 459 464 471 565-574 586-602 689 694 701 800-804 816-979 1024 1043-1062 1073-1076 1177 1181 1224-1235 1240 1244-1247 1314-1315 1391-1443 1510-1536
R/Tables.R 77% 19-30 86
R/TADAGeospatialRefLayers.R 0% 8-13
R/TADARefTables.R 83% 72 82-86
R/Transformations.R 88% 76-77 82 179-185 343-344 380-381 465 540-541 709-722 807-808 819-820 825 840-843 846-855 859
R/UnitConversions.R 81% 128 344 351 358 365 372 379 386 393-394 520-584 608-645 668 708 722-731 923-925 1002 1059-1062 1092
R/Utilities.R 50% 28-32 190 303-304 308 313 386 488-496 557-558 565 627-628 658-662 765-766 770-771 781-785 790-791 833-1126 1152-1153 1164-1165 1225-1574 1667-1700
R/WQPWQXRefTables.R 62% 21-86 110 120 126-128 140 162 172 178-180 255 277 287 293-295 379 400 410 416-420 564 586 596 602-604 621 644 654 660-662 767-970

Minimum allowed coverage is 10%

Generated by 🐒 cobertura-action against e14140c

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[air] reported by reviewdog 🐶

EPATADA/R/Utilities.R

Lines 91 to 162 in cc4b695

"TADA.ConsolidatedDepth.Bottom TADA.ConsolidatedDepth.Unit", "TADA.DepthCategory.Flag",
"TADA.DepthProfileAggregation.Flag", "TADA.NResults",
"TADA.ResultDepthHeightMeasure.MeasureUnitCode", "TADA.ResultDepthHeightMeasure.MeasureValue",
"YAxis.DepthUnit", "TADA.CharacteristicsForDepthProfile", "TADA.ConsolidatedDepth",
"TADA.ConsolidatedDepth.Bottom", "TADA.ConsolidatedDepth.Unit", "col2rgb",
"palette.colors", "rect", "rgb", "text", "CodeNoSpeciation", "ResultMeasure.MeasureUnitCode.Upper",
"TADA.MonitoringLocationIdentifier", "StringA", "StringB", "MeasureUnitCode.match",
"TADA.ActivityTopDepthHeightMeasure.MeasureValue", "group_id", "time_diff_lead", "time_diff_lag",
"NResults", "missing.group", "TADA.PairingGroup", "TADA.PairingGroup.Rank", "timediff",
"TADA.MonitoringLocationName", "TADA.MonitoringLocationTypeName",
"ATTAINS.SubmissionId", "HorizontalCoordinateReferenceSystemDatumName",
"NCount", "NHD.catchmentareasqkm", "NHD.comid", "NHD.nhdplusid", "NHD.resolution",
"areasqkm", "assessmentUnitIdentifier", "catchmentareasqkm", "comid",
"featureid", "geometry", "nhdplusid", "waterTypeCode", "TADA.NearbySiteGroup",
"TADA.MonitoringLocationIdentifier.New", "TADA.NearbySites.Flag", "CountSites", "Group",
"Matrix", "n_id", "OrgRank", "rank.default", "Site", "TADA.LatitudeMeasure.New",
"TADA.LongitudeMeasure.New", "TADA.MonitoringLocationName.New",
"TADA.MonitoringLocationTypeName.New", "df_number", "ASSESSMENT_UNIT_ID",
"ATTAINS.FlagParameterName", "ATTAINS.FlagUseName", "ATTAINS.ParameterName",
"CRITERIATYPEAQUAHUMHLTH", "CRITERIATYPEFRESHSALTWATER", "CRITERIATYPE_ACUTECHRONIC",
"CRITERIATYPE_WATERORG", "CRITERION_VALUE", "ENTITY_ABBR", "EPA304A.PollutantName",
"IncludeOrExclude", " MONITORING_DATA_LINK_TEXT", "MONITORING_DATA_LINK_TEXT.New",
"MS_LOCATION_ID", "MS_ORG_ID", "MonitoringDataLinkText", "OrgIDForURL", "POLLUTANT_NAME",
"ProviderName", "TADA.SingleOrgDup.Flag", "UNIT_NAME", "URLencode", "USE_CLASS_NAME_LOCATION_ETC",
"assessment_unit_identifier", "monitoring_data_link_text", "monitoring_location_identifier",
"monitoring_organization_identifier", "monitoring_stations", "organization_identifier",
"organization_identifier.y", "parameter", "use_name", "use_name.y",
"ATTAINS.OrganizationIdentifier", "ATTAINS.ParameterName.y",
"ATTAINS.UseName", "ATTAINS.UseName.x", "ATTAINS.UseName.y",
"Flag.ParameterInput", "Flag.UseInput", "TADA.ComparableDataIdentifier.x",
"TADA.ComparableDataIdentifier.y", "organizationId", "organizationName",
"organizationType", "parameterName",
"PARCEL_NO", "TRIBE_NAME", "everything",
"resultCount", "tribal_area", "txtProgressBar", "Date", "NWIS.parameter",
"NWIS.status", "NWIS.value", "TADA.DistanceAway.Meters", "agency_cd begin_date",
"parm_cd site_no", "site_tp_cd", "site_type", "st_drop_geometry", "station_nm",
"ApplyUniqueSpatialCriteria", "assessmentUnitId", "ATTAINS.AssessmentUnitName",
"ATTAINS.OrganizationIdentifier", "ATTAINS.WaterType", "useName", "waterType",
"TADA.AssessmentUnitStatus", "Flag.AssessmentNote",
"cluster", "count", "count_nu", "data_type", "data_type_cd", "dec_lat_va",
"dec_long_va", "end_date", "parameter_code", "parameter_name_description",
"Statistic Type Code", "Statistic Type Description", "agency_cd", "begin_date",
"parm_cd", "site_no", "stat_cd", "stat_type", "grouped.sites", "n",
"nearby", "rainbow", "monitoringLocationId", "monitoringLocationOrgId",
"monitoringLocationDataLink", "ATTAINS.OrganizationName", "ATTAINS.WaterType",
"ATTAINS.MonitoringDataLinkText", "ATTAINS.MonitoringDataLinkText.New",
"ATTAINS.MonitoringLocationIdentifier", "AssessmentUnitIdentifier",
"DetectionQuantitationLimitMeasure.MeasureUnitCode", "MS_DATA_LINK",
"OLD_ATTAINS.MonitoringLocationIdentifier", "Shape_Area", "Shape_Length",
"TADA.AURefSource", "TADA.NutrientSummation.Flag", "assessmentunitname",
"assmnt_joinkey", "catchmentistribal", "catchmentresolution",
"catchmentstatecode", "has4bplan", "hasalternativeplan", "hasprotectionplan",
"hastmdl", "huc12", "ircategory", "isassessed", "isimpaired", "isthreatened",
"objectId", "on303dlist", "organizationid", "organizationname", "orgtype",
"overallstatus", "permid_joinkey", "region", "reportingCycle",
"reportingcycle", "response.code", "return_sf", "state", "submissionid",
"tas303d", "visionpriority303d", "waterbodyreportlink", "xwalk_huc12_version",
"xwalk_method", "WqxV2.FieldName", "auid.col", "ml.col", "type.col",
"AggregatedActivityEndDateTime", "AggregatedActivityStartDateTime",
"ATTAINS.AssessmentUnitIdentifier.y", "ATTAINS.WaterType.y DepthCategory",
"DurationPeriod.x", "DurationValue", "geomean_TADA.ResultMeasureValue",
"MagnitudeUnit", "MagnitudeValueLower", "MagnitudeValueUpper",
"n_Aggregatedsamples", "n_exceedance", "SaltFresh", "TADA.ParameterInSite.Flag",
"UniqueSpatialCriteria", "ATTAINS.WaterType.y", "DepthCategory", "User.WaterType",
"ATTAINS.OrganizationId", "MatchMessage", "Mismatch", "Ref.WaterType",
"Alias.Type.Name", "CAS_NO CAS.Number", "Char_Flag.x", "Char_Flag.y",
"Characteristic.Name", "STD_POLLUTANT_NAME", "name", "name_words",
"percent_match_ATTAINS", "percent_match_WQX", "Characteristic", "WQXcharValRef",
"CAS.Number", "CAS_NO CharacteristicName.x", "CharacteristicName.y",
"Comparable.Name.x", "Comparable.Name.y", "POLLUTANT_NAME.x", "POLLUTANT_NAME.y",
"STD_POLLUTANT_NAME.x", "STD_POLLUTANT_NAME.y", "percent_match_ATTAINS_CST",
"percent_match_ATTAINS_WQX", "percent_match_CST"

system.file to read in example criteria table
updated criteria_table.rda read in
display data table for each chunk
@cristinamullin cristinamullin merged commit 88dff79 into develop Nov 25, 2025
12 of 14 checks passed
@cristinamullin cristinamullin deleted the Updates-to-Mod3-Functions-and-Vignettes branch November 25, 2025 16:46
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.

3 participants