-
Notifications
You must be signed in to change notification settings - Fork 23
Updates to mod3 functions and vignettes #713
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Updates to mod3 functions and vignettes #713
Conversation
Handle errors in TADA_ExampleMod3Workflow vignette
| TADA_CreateParamRef <- function(.data, org_id = NULL, paramRef = NULL, auto_assign = c("None", "All", "Org"), | ||
| excel = FALSE, overwrite = FALSE) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[air] reported by reviewdog 🐶
| 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, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[air] reported by reviewdog 🐶
| 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, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[air] reported by reviewdog 🐶
| 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) ~ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[air] reported by reviewdog 🐶
| ATTAINS.ParameterName == "Not Applicable for Analysis." | is.na(ATTAINS.ParameterName) ~ | |
| ATTAINS.ParameterName == "Not Applicable for Analysis." | | |
| is.na(ATTAINS.ParameterName) ~ |
| 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")) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[air] reported by reviewdog 🐶
| 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.") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[air] reported by reviewdog 🐶
| 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.") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[air] reported by reviewdog 🐶
| 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.") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[air] reported by reviewdog 🐶
| 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." | |
| ) |
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.
| dplyr::select(ATTAINS.OrganizationIdentifier, TADA.ComparableDataIdentifier, ATTAINS.ParameterName) %>% | ||
| dplyr::mutate(Flag.ParameterInput = "This crosswalk was provided through a user supplied table") %>% |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[air] reported by reviewdog 🐶
| 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" | |
| ) %>% |
| 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")]) %>% |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[air] reported by reviewdog 🐶
| 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" | |
| )]) %>% |
| TADA.ComparableDataIdentifier, ATTAINS.OrganizationIdentifier, ATTAINS.ParameterName, | ||
| ATTAINS.FlagParameterName, Flag.ParameterInput |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[air] reported by reviewdog 🐶
| 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) | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[air] reported by reviewdog 🐶
| #' @return Updated sysdata.rda with updated ATTAINSParamToWQPCharRef object | ||
| #' | ||
| #' @export | ||
| TADA_GetATTAINSParamToWQPCharRef <- function(charAliasType = c("All", "ATTAINS")) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[air] reported by reviewdog 🐶
| TADA_GetATTAINSParamToWQPCharRef <- function(charAliasType = c("All", "ATTAINS")) { | |
| TADA_GetATTAINSParamToWQPCharRef <- function( | |
| charAliasType = c("All", "ATTAINS") | |
| ) { |
| 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) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[air] reported by reviewdog 🐶
| 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) |
| use_name = USE_CLASS_NAME_LOCATION_ETC, CRITERION_VALUE, | ||
| CRITERIATYPEAQUAHUMHLTH, CRITERIATYPEFRESHSALTWATER, | ||
| CRITERIATYPE_ACUTECHRONIC, CRITERIATYPE_WATERORG, UNIT_NAME |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[air] reported by reviewdog 🐶
| 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") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[air] reported by reviewdog 🐶
| 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"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[air] reported by reviewdog 🐶
| 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"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[air] reported by reviewdog 🐶
| 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"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[air] reported by reviewdog 🐶
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), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[air] reported by reviewdog 🐶
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
some minor updates to handle errors in the mod 3 vignette.
MT.ParamRef.All <- TADA_CreateParamRef( tada.MT.clean, org_id = c("MTDEQ", "MDE_EASP", "21ARIZ"), auto_assign = "Org", excel = FALSE )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 )