Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
84 commits
Select commit Hold shift + click to select a range
340f8e2
add flag columns for TADA_UsesAliasRef.csv
wokenny13 Aug 14, 2026
2b01266
update UsesType ATTAINS crosswalk table in TADA_GetTADAUsesAliasRef f…
wokenny13 Aug 14, 2026
9714553
update UsesType in TADAGetTADAUsesAliasRef.csv
wokenny13 Aug 18, 2026
1970a6b
include CST pollutant name in TADA_ParametersForAnalysis
wokenny13 Aug 18, 2026
5b05737
Update ATTAINSCrosswalks.R
wokenny13 Aug 18, 2026
d172bd9
include CST.UseName in TADAUsesForAnalysis Output if auto_assign = T
wokenny13 Aug 19, 2026
56255d1
update excel output for TADA_ParametersForAnalysis
wokenny13 Aug 20, 2026
27d6882
fix bug with auto_assign = None in TADAParametersForAnalysis
wokenny13 Aug 20, 2026
eb01a99
paramRef arg input fix in TADA_ParametersForAnalysis
wokenny13 Aug 26, 2026
cff92dc
include CST.PollutantName and CST.UseName in TADA_UsesForAnalysis
wokenny13 Aug 26, 2026
b4e8354
modify excel formatting for TADA_UsesForAnalysis
wokenny13 Aug 26, 2026
e14a809
Merge branch 'develop' into 1031-add-flagusesaliasmethod-column-to-th…
wokenny13 Aug 27, 2026
81108bc
Merge branch 'join-wqp-data-with-criteria-table' into 1031-add-flagus…
wokenny13 Aug 28, 2026
766c8ad
Final updates to TADAParametersForAnalysis excel file output and drop…
wokenny13 Aug 28, 2026
f8dc1dd
populate CST pollutant and uses combination in TADA_UsesForAnalysis o…
wokenny13 Aug 28, 2026
59bc81a
update TADA_UsesForAnalysis excel output and drop downs
wokenny13 Aug 28, 2026
2a4071b
create separate uses Ref crosswalk function
wokenny13 Aug 31, 2026
0c8a6e2
Update ATTAINSCrosswalks.R
wokenny13 Sep 2, 2026
d38b3fb
rename functions
wokenny13 Sep 2, 2026
6d3badd
documentation for new TADA_UsesForAnalysis Function
wokenny13 Sep 2, 2026
5a97ff9
TADA_ParamUsesRef updates to filter final output
wokenny13 Sep 2, 2026
5a465bc
update r doc TADA_ParamUseRef
wokenny13 Sep 3, 2026
108f493
function name change dependencies fixes and other code cleanup
wokenny13 Sep 3, 2026
42b64fc
address column name changes
wokenny13 Sep 3, 2026
11e25d2
Update TADA_ParamUseRef
wokenny13 Sep 4, 2026
1fe0781
TADA_ParametersForAnalysis refactor
wokenny13 Sep 4, 2026
80df31e
param and uses output fixes
wokenny13 Sep 8, 2026
fbb61c3
final edits, r doc example, paramUsesRef output to display all unique…
wokenny13 Sep 8, 2026
52b0336
handle auto_assign = TRUE TADA_ParamUseRef
wokenny13 Sep 8, 2026
a4de31e
TADA_GetTADAUsesAliasRef updates to include org_id
wokenny13 Sep 8, 2026
e7e4f79
update TADAUsesAliasRef.csv and r documentation examples
wokenny13 Sep 8, 2026
1c3cefa
bug fix to display all CST values for a pollutant and use and to keep…
wokenny13 Sep 10, 2026
ff88c11
r documentation update
wokenny13 Sep 10, 2026
e56e2da
update usesaliasref.csv
wokenny13 Sep 10, 2026
3004efe
Update ATTAINSCrosswalks.R
wokenny13 Sep 11, 2026
29f2cd1
Update TADARefTables.R
wokenny13 Sep 11, 2026
5c1685e
Merge branch 'develop' into 1031-add-flagusesaliasmethod-column-to-th…
wokenny13 Oct 2, 2026
0f0a836
Merge branch '1031' into 1031-add-flagusesaliasmethod-column-to-the-t…
wokenny13 Oct 2, 2026
3bd0c9c
Create CSTCrosswalks.R
wokenny13 Oct 6, 2026
017bf8f
make param crosswalk function documentation concise and update docume…
wokenny13 Oct 7, 2026
71ea5c9
separate param crosswalk excel chunk into own internal TADA function,…
wokenny13 Oct 7, 2026
52bda5f
TADA_CreateParamUsesRef update to handle case in which CST.PollutantN…
wokenny13 Oct 8, 2026
dc7cc8d
documentation for internal excel param function and include CST Pollu…
wokenny13 Oct 9, 2026
ddeb08f
rename functions to TADA_CrosswalkCSTWQPATTAINSParamName and TADACros…
wokenny13 Oct 9, 2026
8f69ded
Merge branch 'develop' into 1056-incorporate-cst-pollutant-and-uses-c…
wokenny13 Oct 9, 2026
cf4ccf2
function name change and MLSummaryRef function revision
wokenny13 Oct 13, 2026
8a31d6b
Merge branch 'develop' into 1056-incorporate-cst-pollutant-and-uses-c…
wokenny13 Oct 14, 2026
b1e10ef
Merge branch 'develop' into 1056-incorporate-cst-pollutant-and-uses-c…
wokenny13 Oct 14, 2026
dd69981
document
wokenny13 Oct 14, 2026
b6c94f3
TADA_DefineCriteriaMethdology draft updates
wokenny13 Oct 15, 2026
a7af6e2
address define criteria methods function dependencies
wokenny13 Oct 16, 2026
ae70dfc
flag updates in TADA_CreateParamUseRef
wokenny13 Oct 16, 2026
5fbaf03
update TADA_CreateParamUseRef documentation
wokenny13 Oct 16, 2026
e16cdb7
draft
wokenny13 Oct 19, 2026
11884fa
draft updates part 2
wokenny13 Oct 19, 2026
48fd146
join CST magnitudevalue and other columns to output in TADADefineCrit…
wokenny13 Oct 20, 2026
9390b71
update comments
wokenny13 Oct 21, 2026
4ece744
Update CriteriaMethods.R
wokenny13 Oct 24, 2026
2f8eb99
include harmonization in TADA_DefineCriteriaMethodology
wokenny13 Oct 27, 2026
a700f6f
incorporate harmonizing units between criteria and WQP data
wokenny13 Oct 27, 2026
cc66747
fixes to TADA_DefineCriteriaMethodology for user supplied case
wokenny13 Oct 27, 2026
3588a70
documentation example update
wokenny13 Oct 29, 2026
c315104
update r doc example
wokenny13 Oct 29, 2026
227e359
revise r documentation for TADA_DefineCriteriaMethodology
wokenny13 Oct 29, 2026
b69e967
Update TADA_DefineCriteriaMethodology.Rd
wokenny13 Oct 29, 2026
5a8b0f8
return list of data frames in TADA_DefineCriteriaMethodology
wokenny13 Oct 30, 2026
883d45d
Merge branch 'develop' into 1056-incorporate-cst-pollutant-and-uses-c…
wokenny13 Oct 30, 2026
7bb3982
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Oct 30, 2026
3aaffac
run document()
wokenny13 Oct 30, 2026
6ea8113
Merge branch '1056-incorporate-cst-pollutant-and-uses-crosswalk-funct…
wokenny13 Oct 30, 2026
d6376d8
update wordlist
wokenny13 Oct 30, 2026
af3b6b9
run document
wokenny13 Oct 30, 2026
3a1cdc8
rename function name of TADA_ParametersForAnalysis and TADA_UsesForAn…
wokenny13 Nov 12, 2026
3429807
run document
wokenny13 Nov 12, 2026
bdeee94
merge develop
wokenny13 Nov 12, 2026
d341bab
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Nov 12, 2026
c6d0c38
correct test-CriteriaMethods lines 1 through 202 currently
wokenny13 Nov 13, 2026
2b66ad8
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Nov 13, 2026
af54e29
test-CriteriaMethods fixes to line 646
wokenny13 Nov 14, 2026
2e7856e
Merge branch '1056-incorporate-cst-pollutant-and-uses-crosswalk-funct…
wokenny13 Nov 14, 2026
de5e595
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Nov 14, 2026
b032726
Update test-CriteriaMethods.R
wokenny13 Nov 16, 2026
ff78f99
fix TADA_CreateParamUseRef excel file generation
wokenny13 Nov 16, 2026
247decf
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Nov 16, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,13 @@ export(TADA_CreateAUMLCrosswalk)
export(TADA_CreateCSV)
export(TADA_CreateComparableID)
export(TADA_CreatePairRef)
export(TADA_CreateParamUseRef)
export(TADA_CreatePointAUGeometry)
export(TADA_CreatePointAUs)
export(TADA_CreateUnitRef)
export(TADA_CrosswalkCSTATTAINSUses)
export(TADA_CrosswalkCSTWQPATTAINSParam)
export(TADA_CrosswalkWQPATTAINSParam)
export(TADA_DataRetrieval)
export(TADA_DayOfYearPlot)
export(TADA_DefineCriteriaMethodology)
Expand Down Expand Up @@ -90,7 +94,6 @@ export(TADA_OrderCols)
export(TADA_OverviewMap)
export(TADA_PairForCriteriaCalc)
export(TADA_PairReplicates)
export(TADA_ParametersForAnalysis)
export(TADA_RandomTestingData)
export(TADA_ReadWQPWebServices)
export(TADA_RenametoLegacy)
Expand All @@ -110,7 +113,6 @@ export(TADA_TwoCharacteristicScatterplot)
export(TADA_UniqueCharUnitSpeciation)
export(TADA_UpdateATTAINSAUMLCrosswalk)
export(TADA_UpdateATTAINSWaterTypes)
export(TADA_UsesForAnalysis)
export(TADA_ViewATTAINS)
export(TADA_ViewColorPalette)
export(TADA_ViewNewAUs)
Expand Down
5,564 changes: 2,563 additions & 3,001 deletions R/ATTAINSCrosswalks.R

Large diffs are not rendered by default.

2,366 changes: 766 additions & 1,600 deletions R/CriteriaMethods.R

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions R/TADACommunityHub.R
Original file line number Diff line number Diff line change
Expand Up @@ -189,8 +189,8 @@ TADA_GetCriteriaFile <- function(org_id = NULL, display_name = NULL) {
df <- openxlsx::read.xlsx(file_path)

# create a dummy reference to a TADACommunityHub function, Rmd checks will create a warning if no reference to any functions are made from an Imports package.
temp <- TADACommunityHub::validateATTAINSParam(df)
rm(temp)
# temp <- TADACommunityHub::validateATTAINSParam(df)
# rm(temp)

return(df)
}
4 changes: 2 additions & 2 deletions dev/Draft/ExampleMod3CriteriaMethodsAltOptions.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ criteria table

4) (Recommended) Go through the step-by-step review process with the 3
TADA crosswalk reference file generation for
TADA_ParametersForAnalysis, TADA_UsesForAnalysis, and
TADA_CrosswalkWQPATTAINSParam, TADA_CreateParamUseRef, and
TADA_MLSummaryRef. This vignette does not go through this
recommended workflow. Please see ExampleMod3Workflow.Rmd for this
guided workflow.
Expand Down Expand Up @@ -295,7 +295,7 @@ organization. Users should be aware that this will only return rows for
any matching values from a WQP characteristic to ATTAINS parameter alias
table. It is likely that these value(s) will require a thorough review
process during each step of the process with the recommended workflow of
TADA_ParametersForAnalysis, TADA_UsesForAnalysis and TADA_MLSummaryRef.
TADA_CrosswalkWQPATTAINSParam, TADA_CreateParamUseRef and TADA_MLSummaryRef.

```{r auto-fill-output}
MT.Criteria.auto <- TADA_DefineCriteriaMethodology(
Expand Down
66 changes: 33 additions & 33 deletions dev/Draft/ExampleMod3Workflow.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ tada.MT.clean <- Data_MT_MissoulaCounty

This example will focus only on Montana. The remainder of this vignette
will walk through how to fill out two crosswalk tables
(TADA_ParametersForAnalysis and TADA_UsesForAnalysis) that are needed
(TADA_CrosswalkWQPATTAINSParam and TADA_CreateParamUseRef) that are needed
before we can start assigning applicable criteria and methodologies
information for this specific ATTAINS organization (MTDEQ).

Expand All @@ -210,7 +210,7 @@ information for this specific ATTAINS organization (MTDEQ).
A crosswalk between TADA characteristics and ATTAINS parameters is
needed before we can integrate information from these two data sets.
Before creating the TADA/WQP CharacteristicName and ATTAINS parameter
crosswalk table (TADA_ParametersForAnalysis), let's review all the
crosswalk table (TADA_CrosswalkWQPATTAINSParam), let's review all the
unique TADA.ComparableDataIdentifiers (characteristic, fraction and
speciation combinations) in the example data. How many results are
available for each within the example data set?
Expand All @@ -237,7 +237,7 @@ TADA_TableExport(rExpertQuery::EQ_DomainValues("param_name", api_key = rEQ_api))

In the next section, we will review which parameters have been listed in
ATTAINS in the past for a specific organization. In order to select a
specific organization in the TADA_ParametersForAnalysis() function, we
specific organization in the TADA_CrosswalkWQPATTAINSParam() function, we
need to identify the organization id used in ATTAINS. The organization
id for Montana is "MTDEQ".

Expand All @@ -246,17 +246,17 @@ id for Montana is "MTDEQ".
TADA_TableExport(rExpertQuery::EQ_DomainValues("org_id", api_key = rEQ_api))
```

# TADA_ParametersForAnalysis() Basics
# TADA_CrosswalkWQPATTAINSParam() Basics

ATTAINS Parameter Names are more general than the TADA Comparable Data
Identifiers. Therefore, we recommend users provide a crosswalk between
each TADA.ComparableDataIdentifier and ATTAINS.ParameterName.
TADA_ParametersForAnalysis() creates a template which includes all
TADA_CrosswalkWQPATTAINSParam() creates a template which includes all
TADA.ComparableDataIdentifiers from the TADA data frame and contains a
blank column, "ATTAINS.ParameterName" for users to input the
corresponding ATTAINS parameter name.

TADA_ParametersForAnalysis() includes an argument input 'auto_assign' to
TADA_CrosswalkWQPATTAINSParam() includes an argument input 'auto_assign' to
assist users in finding an alias name between TADA Characteristic Names
to ATTAINS Parameter Name, if one is found. It is important to note that
even with these exact matches, there are additional complexities related
Expand All @@ -267,7 +267,7 @@ parameter "Nitrogen", while others may consider only some
fraction/speciation combinations analogous to the ATTAINS parameter
"Nitrogen".

Setting "excel = TRUE" in TADA_ParametersForAnalysis tells the function
Setting "excel = TRUE" in TADA_CrosswalkWQPATTAINSParam tells the function
to create an Excel spreadsheet of the reference table for review and
editing. The excel output includes logic to help a user select ATTAINS
parameter names that have been used in the past by the selected
Expand All @@ -276,7 +276,7 @@ organization. If users do not want to work in Excel, they can use "excel
in R if desired, although there are no TADA-specific functions designed
to facilitate this.

When using TADA_ParametersForAnalysis(), users should specify the
When using TADA_CrosswalkWQPATTAINSParam(), users should specify the
organization(s) of interest in the "org_id" argument. This ensures that
the correct number of rows will be created in the reference table. When
"excel = TRUE", specifying the organization(s) also creates a separate
Expand All @@ -290,7 +290,7 @@ ATTAINS domain list.
Keep in mind that only parameter names previously entered in ATTAINS by
the selected organization(s) will be returned. Many organization only
input parameters that are causes in ATTAINS. This means that
TADA_ParametersForAnalysis() may not return all parameters required by
TADA_CrosswalkWQPATTAINSParam() may not return all parameters required by
an organization's assessment methodology if some parameters have never
been listed as a cause. If there is not a suitable ATTAINS parameter
name to match a TADA.ComparableDataIdentifier, users should contact the
Expand All @@ -304,7 +304,7 @@ this crosswalk out.

```{r auto_assign-none}
# create TADA parameter reference table for specified organization
MT.ParamRef.None <- TADA_ParametersForAnalysis(
MT.ParamRef.None <- TADA_CrosswalkWQPATTAINSParam(
tada.MT.clean,
org_id = c("MTDEQ"),
auto_assign = "None",
Expand All @@ -326,7 +326,7 @@ previously record in ATTAINS may be included in the assignments.

```{r auto_assign-All}
# create TADA parameter reference table for specified organization
MT.ParamRef.All <- TADA_ParametersForAnalysis(
MT.ParamRef.All <- TADA_CrosswalkWQPATTAINSParam(
tada.MT.clean,
org_id = c("MTDEQ"),
auto_assign = "All",
Expand All @@ -343,7 +343,7 @@ an organization has used in the past.

```{r auto_assign-Org}
# create TADA parameter reference table for specified organization
MT.ParamRef.Org <- TADA_ParametersForAnalysis(
MT.ParamRef.Org <- TADA_CrosswalkWQPATTAINSParam(
tada.MT.clean,
org_id = c("MTDEQ"),
auto_assign = "Org",
Expand All @@ -366,7 +366,7 @@ be modified in R.
# downloads_path <- file.path(Sys.getenv("USERPROFILE"), "Downloads", "myfileRef.xlsx")
# ParamRef <- openxlsx::read.xlsx(downloads_path, sheet = "CreateParamRef")

# MT.ParamRef_Excel <- TADA_ParametersForAnalysis(
# MT.ParamRef_Excel <- TADA_CrosswalkWQPATTAINSParam(
# Data_NCTC,
# org_id = c("MTDEQ"),
# paramRef = ParamRef,
Expand All @@ -386,7 +386,7 @@ TADA_TableExport(MT.ParamRef.manual)
### Provide a User Supplied paramRef

Once modifications are complete, we can re-run
TADA_ParametersForAnalysis using the modified parameter reference table
TADA_CrosswalkWQPATTAINSParam using the modified parameter reference table
as the input for "paramRef". This will update the
ATTAINS.FlagParameterName column in the parameter reference table (see
example below). This column provides information about whether or not
Expand All @@ -396,7 +396,7 @@ It also flags rows where the TADA.ComparableDataIdentifier as not been
assigned an ATTAINS parameter name.

```{r User-Supplied-ParamRef}
MT.ParamRef.user.supplied <- TADA_ParametersForAnalysis(
MT.ParamRef.user.supplied <- TADA_CrosswalkWQPATTAINSParam(
tada.MT.clean,
org_id = c("MTDEQ"),
paramRef = MT.ParamRef.manual,
Expand Down Expand Up @@ -427,7 +427,7 @@ ATTAINS.ParameterName in the user supplied 'MT.ParamRef_user_supplied,
this table will be the same.

```{r finalize-paramRef}
MT.ParamRef.Final <- TADA_ParametersForAnalysis(
MT.ParamRef.Final <- TADA_CrosswalkWQPATTAINSParam(
tada.MT.clean,
org_id = c("MTDEQ"),
paramRef = MT.ParamRef.user.supplied,
Expand All @@ -450,7 +450,7 @@ that are relevant for the remaining workflow.
rm(MT.ParamRef.All, MT.ParamRef.manual, MT.ParamRef.None, MT.ParamRef.Org, MT.ParamRef.user.supplied)
```

# TADA_UsesForAnalysis() Basics
# TADA_CreateParamUseRef() Basics

Users will review the output of this function and select which
ATTAINS.UseName(s) and associated ATTAINS.ParameterName(s), for your
Expand Down Expand Up @@ -487,7 +487,7 @@ this current assessment cycle. Thus, the ATTAINS.UseName is left blank
for "PH, HIGH".

```{r usesRef-Manual}
MT.UsesRef.manual <- TADA_UsesForAnalysis(
MT.UsesRef.manual <- TADA_CreateParamUseRef(
tada.MT.clean,
org_id = c("MTDEQ"),
paramRef = MT.ParamRef.Final,
Expand Down Expand Up @@ -526,11 +526,11 @@ UsesRef <- MT.UsesRef.manual |>

The output of UsesRef will not reflect changes to the
ATTAINS.FlagUseName column. To do so, we need to re run
TADA_UsesForAnalysis() with usesRef = add_data as an argument input.
TADA_CreateParamUseRef() with usesRef = add_data as an argument input.

```{r usesRef-Manual-Update2}
# PH will now reflect the changes
MT.UsesRef.manual.Update <- TADA_UsesForAnalysis(
MT.UsesRef.manual.Update <- TADA_CreateParamUseRef(
tada.MT.clean,
org_id = c("MTDEQ"),
paramRef = MT.ParamRef.Final,
Expand All @@ -557,7 +557,7 @@ are more ATTAINS.UseName applicable for that ATTAINS.ParameterName that
was not captured by the auto_assign method.

```{r usesRef-auto}
MT.UsesRef.auto <- TADA_UsesForAnalysis(
MT.UsesRef.auto <- TADA_CreateParamUseRef(
tada.MT.clean,
org_id = c("MTDEQ"),
paramRef = MT.ParamRef.Final,
Expand All @@ -572,7 +572,7 @@ MT.UsesRef.auto <- TADA_UsesForAnalysis(
TADA_TableExport(MT.UsesRef.auto)
```

# **Advanced: Deep Dive into `TADA_UsesForAnalysis()`**
# **Advanced: Deep Dive into `TADA_CreateParamUseRef()`**

Users may have their own set of use names to associate with parameter
names or may have completed an AU to uses crosswalk in prior TADA
Expand Down Expand Up @@ -638,7 +638,7 @@ which are prioritized as follows:
(ATTAINS.ParameterName) found in your paramRef crosswalk for the
specified ATTAINS organization. Data is retrieved from prior ATTAINS
assessment cycles via ATTAINS ExpertQuery web services. This is the
same as the basic use case under 'TADA_UsesForAnalysis() Basics'
same as the basic use case under 'TADA_CreateParamUseRef() Basics'
section of this vignette.

#### Option 1: User supplied usesRef
Expand Down Expand Up @@ -682,8 +682,8 @@ criteria_table <- TADA_GetCriteriaFile(org_id = "MTDEQ")
# extract the parameter and uses from this table
user.supplied.MT.data <- dplyr::select(criteria_table, ATTAINS.OrganizationIdentifier, TADA.ComparableDataIdentifier, TADA.CharacteristicName, ATTAINS.ParameterName, ATTAINS.UseName)

# run TADA_UsesForAnalysis and filter the table to ATTAINS.ParameterName(s) found in your paramRef arg input.
MT.UsesRef.manual.user.supplied <- TADA_UsesForAnalysis(
# run TADA_CreateParamUseRef and filter the table to ATTAINS.ParameterName(s) found in your paramRef arg input.
MT.UsesRef.manual.user.supplied <- TADA_CreateParamUseRef(
tada.MT.clean,
org_id = c("MTDEQ"),
paramRef = MT.ParamRef.Final,
Expand Down Expand Up @@ -723,7 +723,7 @@ to MT.UsesRef.with.AU_UsesRef.
# uses will come from the user supplied reference table produced in ExampleMod2Workflow.Rmd
utils::data(Data_MT_AU_UsesRef)

MT.UsesRef.manual.AU_UsesRef <- TADA_UsesForAnalysis(
MT.UsesRef.manual.AU_UsesRef <- TADA_CreateParamUseRef(
tada.MT.clean,
org_id = c("MTDEQ"),
paramRef = MT.ParamRef.Final,
Expand All @@ -741,7 +741,7 @@ TADA_TableExport(MT.UsesRef.manual.AU_UsesRef)
Now, lets show the output when we turn auto_assign = TRUE

```{r usesRef-auto-AU_UsesRef}
MT.UsesRef.auto.AU_UsesRef <- TADA_UsesForAnalysis(
MT.UsesRef.auto.AU_UsesRef <- TADA_CreateParamUseRef(
tada.MT.clean,
org_id = c("MTDEQ"),
paramRef = MT.ParamRef.Final,
Expand All @@ -766,7 +766,7 @@ those assessment units in your data frame of interest.

Let's go ahead and pull in our AUMLRef crosswalk created in
TADAModule2.Rmd vignette. We will compare the output of
**`TADA_UsesForAnalysis`** for assessment units for MTDEQ for the case
**`TADA_CreateParamUseRef`** for assessment units for MTDEQ for the case
in which water type is 'LAKE, FRESHWATER' versus 'RIVER'.

```{r retrieve-AUMLRef}
Expand All @@ -789,7 +789,7 @@ Question: What differences do we see between the two outputs for 'LAKE,
FRESHWATER' versus 'RIVER'?

```{r usesRef-with-AUMLRef-lake}
MT.UsesRef.manual.MT76F007_010 <- TADA_UsesForAnalysis(
MT.UsesRef.manual.MT76F007_010 <- TADA_CreateParamUseRef(
tada.MT.clean,
org_id = c("MTDEQ"),
paramRef = MT.ParamRef.Final,
Expand All @@ -805,7 +805,7 @@ TADA_TableExport(MT.UsesRef.manual.MT76F007_010)
```

```{r usesRef-with-AUMLRef-river}
MT.UsesRef.manual.MT76M004_070 <- TADA_UsesForAnalysis(
MT.UsesRef.manual.MT76M004_070 <- TADA_CreateParamUseRef(
tada.MT.clean,
org_id = c("MTDEQ"),
paramRef = MT.ParamRef.Final,
Expand All @@ -823,7 +823,7 @@ TADA_TableExport(MT.UsesRef.manual.MT76M004_070)
What do we see with auto_assign for this lake assessment unit?

```{r usesRef-autoassign-AUMLRef-lake}
MT.UsesRef.auto.MT76F007_010 <- TADA_UsesForAnalysis(
MT.UsesRef.auto.MT76F007_010 <- TADA_CreateParamUseRef(
tada.MT.clean,
org_id = c("MTDEQ"),
paramRef = MT.ParamRef.Final,
Expand All @@ -845,7 +845,7 @@ filtered AUMLRef as our input along with the full AU_UsesRef defined
earlier.

```{r usesRef-with-AUMLRef-and-AU_UsesRef-river}
MT.UsesRef.manual.3B <- TADA_UsesForAnalysis(
MT.UsesRef.manual.3B <- TADA_CreateParamUseRef(
tada.MT.clean,
org_id = c("MTDEQ"),
paramRef = MT.ParamRef.Final,
Expand Down Expand Up @@ -877,7 +877,7 @@ have not filled in but will not replace any cross walk that you have
defined in your user supplied crosswalk.

```{r finalize-usesRef}
MT.UsesRef.Final <- TADA_UsesForAnalysis(
MT.UsesRef.Final <- TADA_CreateParamUseRef(
tada.MT.clean,
org_id = c("MTDEQ"),
paramRef = MT.ParamRef.Final,
Expand Down
Loading
Loading