-
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
Changes from all commits
9ffdda5
00bf089
ae68b0f
71c0cec
60c0884
78a0164
6934580
6ac76da
cc4b695
84eefe0
ed80109
e14140c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -923,6 +923,7 @@ TADA_UpdateATTAINSAUMLCrosswalk <- function(org_id = NULL, | |||||||||||||||||||||||||||||||||||||||
| #' | ||||||||||||||||||||||||||||||||||||||||
| TADA_CreateParamRef <- function(.data, org_id = NULL, paramRef = NULL, auto_assign = c("None", "All", "Org"), | ||||||||||||||||||||||||||||||||||||||||
| excel = FALSE, overwrite = FALSE) { | ||||||||||||||||||||||||||||||||||||||||
| # argument input selection for auto_assign | ||||||||||||||||||||||||||||||||||||||||
| auto_assign <- match.arg(auto_assign) | ||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||
| # Return an empty dataframe with column names only if a user does not define any arg inputs. | ||||||||||||||||||||||||||||||||||||||||
|
|
@@ -961,10 +962,7 @@ TADA_CreateParamRef <- function(.data, org_id = NULL, paramRef = NULL, auto_assi | |||||||||||||||||||||||||||||||||||||||
| stop("TADA.CreateParamRef: org_id must be a character vector") | ||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||
| # Allows for users to crosswalk parameters by multiple orgs. | ||||||||||||||||||||||||||||||||||||||||
| org_id <- as.list(org_id) | ||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||
| # If more than 1 org, it will create n duplicate rows for each TADA.ComparableDataIdentifier. | ||||||||||||||||||||||||||||||||||||||||
| # If more than 1 org, it will create n duplicate rows for each TADA.ComparableDataIdentifier. | ||||||||||||||||||||||||||||||||||||||||
| if (length(org_id) > 1) { | ||||||||||||||||||||||||||||||||||||||||
| print(paste0( | ||||||||||||||||||||||||||||||||||||||||
| "TADA.CreateParamRef: More than one org_name was defined in your dataframe. ", | ||||||||||||||||||||||||||||||||||||||||
|
|
@@ -1028,10 +1026,20 @@ TADA_CreateParamRef <- function(.data, org_id = NULL, paramRef = NULL, auto_assi | |||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||
| # Pulls in all unique combinations of TADA.ComparableDataIdentifier in user's dataframe. | ||||||||||||||||||||||||||||||||||||||||
| TADA_param <- dplyr::distinct( | ||||||||||||||||||||||||||||||||||||||||
| .data[, c("TADA.CharacteristicName", "TADA.ComparableDataIdentifier")] | ||||||||||||||||||||||||||||||||||||||||
| .data[, c("TADA.ComparableDataIdentifier"), drop = FALSE] | ||||||||||||||||||||||||||||||||||||||||
| ) %>% | ||||||||||||||||||||||||||||||||||||||||
| tidyr::uncount(weights = length(org_id)) %>% | ||||||||||||||||||||||||||||||||||||||||
| dplyr::mutate(ATTAINS.OrganizationIdentifier = as.character(rep(org_id, nrow(.) / length(org_id)))) | ||||||||||||||||||||||||||||||||||||||||
| dplyr::distinct() %>% | ||||||||||||||||||||||||||||||||||||||||
| dplyr::mutate(ATTAINS.OrganizationIdentifier = NA_character_) %>% | ||||||||||||||||||||||||||||||||||||||||
| tidyr::complete( | ||||||||||||||||||||||||||||||||||||||||
| TADA.ComparableDataIdentifier, | ||||||||||||||||||||||||||||||||||||||||
| ATTAINS.OrganizationIdentifier = org_id | ||||||||||||||||||||||||||||||||||||||||
| ) %>% | ||||||||||||||||||||||||||||||||||||||||
| dplyr::filter(!is.na(ATTAINS.OrganizationIdentifier)) %>% | ||||||||||||||||||||||||||||||||||||||||
| dplyr::left_join( | ||||||||||||||||||||||||||||||||||||||||
| .data[, c("TADA.ComparableDataIdentifier", "TADA.CharacteristicName")], | ||||||||||||||||||||||||||||||||||||||||
| relationship = "many-to-many" | ||||||||||||||||||||||||||||||||||||||||
| ) %>% | ||||||||||||||||||||||||||||||||||||||||
| dplyr::distinct() | ||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||
| # Pulls in all domain values of parameter and use names in ATTAINS. | ||||||||||||||||||||||||||||||||||||||||
| ATTAINS_param_all <- utils::read.csv( | ||||||||||||||||||||||||||||||||||||||||
|
|
@@ -1087,7 +1095,11 @@ TADA_CreateParamRef <- function(.data, org_id = NULL, paramRef = NULL, auto_assi | |||||||||||||||||||||||||||||||||||||||
| TADA.CharacteristicName, TADA.ComparableDataIdentifier, ATTAINS.OrganizationIdentifier, | ||||||||||||||||||||||||||||||||||||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [air] reported by reviewdog 🐶
Suggested change
|
||||||||||||||||||||||||||||||||||||||||
| ATTAINS.ParameterName # , EPA304A.PollutantName | ||||||||||||||||||||||||||||||||||||||||
| ) %>% | ||||||||||||||||||||||||||||||||||||||||
| dplyr::left_join(ATTAINSParameterWQPCharRef, by = c("TADA.CharacteristicName" = "CharacteristicName"), relationship = "many-to-many") %>% | ||||||||||||||||||||||||||||||||||||||||
| dplyr::left_join( | ||||||||||||||||||||||||||||||||||||||||
| ATTAINSParameterWQPCharRef, | ||||||||||||||||||||||||||||||||||||||||
| by = c("TADA.CharacteristicName" = "CharacteristicName"), | ||||||||||||||||||||||||||||||||||||||||
| relationship = "many-to-many" | ||||||||||||||||||||||||||||||||||||||||
| ) %>% | ||||||||||||||||||||||||||||||||||||||||
| dplyr::mutate(ATTAINS.ParameterName = ATTAINS.ParameterName.y) %>% | ||||||||||||||||||||||||||||||||||||||||
| dplyr::select( | ||||||||||||||||||||||||||||||||||||||||
| TADA.ComparableDataIdentifier, ATTAINS.OrganizationIdentifier, | ||||||||||||||||||||||||||||||||||||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [air] reported by reviewdog 🐶
Suggested change
|
||||||||||||||||||||||||||||||||||||||||
|
|
@@ -1165,69 +1177,21 @@ TADA_CreateParamRef <- function(.data, org_id = NULL, paramRef = NULL, auto_assi | |||||||||||||||||||||||||||||||||||||||
| "No Crosswalk was provided and no exact matches were found for this organization." | ||||||||||||||||||||||||||||||||||||||||
| ) | ||||||||||||||||||||||||||||||||||||||||
| ) %>% | ||||||||||||||||||||||||||||||||||||||||
| dplyr::filter(!is.na(ATTAINS.ParameterName)) %>% | ||||||||||||||||||||||||||||||||||||||||
| dplyr::distinct() | ||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||
| # User provides their own user supplied parameter crosswalk | ||||||||||||||||||||||||||||||||||||||||
| if (!is.null(paramRef)) { | ||||||||||||||||||||||||||||||||||||||||
| # Identifies NEW rows in your current CreateParamRef data frame that are missing from your paramRef input - | ||||||||||||||||||||||||||||||||||||||||
| # i.e. current WQP Characteristics that you have not defined a crosswalk for | ||||||||||||||||||||||||||||||||||||||||
| Flag1 <- CreateParamRef %>% | ||||||||||||||||||||||||||||||||||||||||
| # anti_join will identify observations that exist in your 1st data frame, but not in the 2nd data frame. | ||||||||||||||||||||||||||||||||||||||||
| dplyr::anti_join( | ||||||||||||||||||||||||||||||||||||||||
| paramRef, | ||||||||||||||||||||||||||||||||||||||||
| by = | ||||||||||||||||||||||||||||||||||||||||
| c( | ||||||||||||||||||||||||||||||||||||||||
| "TADA.ComparableDataIdentifier", "ATTAINS.OrganizationIdentifier" | ||||||||||||||||||||||||||||||||||||||||
| # "ATTAINS.ParameterName", ATTAINS.FlagParameterName) # Exclude any dynamic values or possible NAs | ||||||||||||||||||||||||||||||||||||||||
| ) | ||||||||||||||||||||||||||||||||||||||||
| ) %>% | ||||||||||||||||||||||||||||||||||||||||
| dplyr::mutate( | ||||||||||||||||||||||||||||||||||||||||
| Flag.ParameterInput = | ||||||||||||||||||||||||||||||||||||||||
| "Suspect: Your paramRef argument did not include this TADA.ComparableDataIdentifier. Please ensure this is not a new WQP Characteristic Name entry that needs to be crosswalked." | ||||||||||||||||||||||||||||||||||||||||
| ) | ||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||
| # identifies if a user has MODIFIED any ATTAINS.ParameterName values by TADA.ComparableDataIdentifier and ATTAINS.OrganizationIdentifier | ||||||||||||||||||||||||||||||||||||||||
| Flag2 <- paramRef %>% | ||||||||||||||||||||||||||||||||||||||||
| dplyr::anti_join( | ||||||||||||||||||||||||||||||||||||||||
| CreateParamRef, | ||||||||||||||||||||||||||||||||||||||||
| by = c( | ||||||||||||||||||||||||||||||||||||||||
| "TADA.ComparableDataIdentifier", "ATTAINS.ParameterName", "ATTAINS.OrganizationIdentifier" | ||||||||||||||||||||||||||||||||||||||||
| ) | ||||||||||||||||||||||||||||||||||||||||
| ) %>% | ||||||||||||||||||||||||||||||||||||||||
| dplyr::mutate( | ||||||||||||||||||||||||||||||||||||||||
| Flag.ParameterInput = | ||||||||||||||||||||||||||||||||||||||||
| "This ATTAINS.ParameterName crosswalk was MODIFIED by your input(s) for this TADA.ComparableDataIdentifier." | ||||||||||||||||||||||||||||||||||||||||
| ) %>% | ||||||||||||||||||||||||||||||||||||||||
| dplyr::mutate( | ||||||||||||||||||||||||||||||||||||||||
| ATTAINS.FlagParameterName = dplyr::case_when( | ||||||||||||||||||||||||||||||||||||||||
| ATTAINS.ParameterName == "No parameter match for TADA.ComparableDataIdentifier" | is.na(ATTAINS.ParameterName) ~ | ||||||||||||||||||||||||||||||||||||||||
| "No parameter crosswalk provided for TADA.ComparableDataIdentifier. Parameter will not be used for assessment.", | ||||||||||||||||||||||||||||||||||||||||
| !ATTAINS.ParameterName %in% ATTAINS_param_all$ATTAINS.ParameterName ~ | ||||||||||||||||||||||||||||||||||||||||
| "Parameter name is not included in ATTAINS, contact ATTAINS to add parameter name to Domain List.", | ||||||||||||||||||||||||||||||||||||||||
| ATTAINS.ParameterName %in% ATTAINS_param_all$ATTAINS.ParameterName & !paste(ATTAINS.OrganizationIdentifier, ATTAINS.ParameterName) %in% paste(ATTAINS_param_all$ATTAINS.OrganizationIdentifier, ATTAINS_param_all$ATTAINS.ParameterName) ~ | ||||||||||||||||||||||||||||||||||||||||
| "Parameter name is listed as a prior cause in ATTAINS, but not for this organization.", | ||||||||||||||||||||||||||||||||||||||||
| paste(ATTAINS.OrganizationIdentifier, ATTAINS.ParameterName) %in% paste(ATTAINS_param_all$ATTAINS.OrganizationIdentifier, ATTAINS_param_all$ATTAINS.ParameterName) ~ | ||||||||||||||||||||||||||||||||||||||||
| "Parameter name is listed as a prior cause in ATTAINS for this organization." | ||||||||||||||||||||||||||||||||||||||||
| ) | ||||||||||||||||||||||||||||||||||||||||
| ) | ||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||
| CreateParamRef <- paramRef %>% | ||||||||||||||||||||||||||||||||||||||||
| dplyr::select("TADA.ComparableDataIdentifier", "ATTAINS.OrganizationIdentifier", "ATTAINS.ParameterName") %>% | ||||||||||||||||||||||||||||||||||||||||
| dplyr::full_join( | ||||||||||||||||||||||||||||||||||||||||
| Flag1 %>% | ||||||||||||||||||||||||||||||||||||||||
| dplyr::full_join( | ||||||||||||||||||||||||||||||||||||||||
| Flag2, | ||||||||||||||||||||||||||||||||||||||||
| by = | ||||||||||||||||||||||||||||||||||||||||
| c( | ||||||||||||||||||||||||||||||||||||||||
| "TADA.ComparableDataIdentifier", "ATTAINS.OrganizationIdentifier", | ||||||||||||||||||||||||||||||||||||||||
| "ATTAINS.ParameterName", "ATTAINS.FlagParameterName", "Flag.ParameterInput" | ||||||||||||||||||||||||||||||||||||||||
| ) | ||||||||||||||||||||||||||||||||||||||||
| ), | ||||||||||||||||||||||||||||||||||||||||
| by = c("TADA.ComparableDataIdentifier", "ATTAINS.OrganizationIdentifier", "ATTAINS.ParameterName") | ||||||||||||||||||||||||||||||||||||||||
| ) %>% | ||||||||||||||||||||||||||||||||||||||||
| dplyr::mutate(Flag.ParameterInput = dplyr::if_else(is.na(ATTAINS.ParameterName), NA, Flag.ParameterInput)) %>% | ||||||||||||||||||||||||||||||||||||||||
| dplyr::rows_patch(CreateParamRef, by = "TADA.ComparableDataIdentifier") %>% | ||||||||||||||||||||||||||||||||||||||||
| paramRef <- paramRef %>% | ||||||||||||||||||||||||||||||||||||||||
| dplyr::select(ATTAINS.OrganizationIdentifier, TADA.ComparableDataIdentifier, ATTAINS.ParameterName) %>% | ||||||||||||||||||||||||||||||||||||||||
| dplyr::mutate(Flag.ParameterInput = "This crosswalk was provided through a user supplied table") %>% | ||||||||||||||||||||||||||||||||||||||||
|
Comment on lines
+1187
to
+1188
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [air] reported by reviewdog 🐶
Suggested change
|
||||||||||||||||||||||||||||||||||||||||
| dplyr::filter(!is.na(ATTAINS.ParameterName)) | ||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||
| CreateParamRef <- CreateParamRef %>% | ||||||||||||||||||||||||||||||||||||||||
| 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
+1192
to
+1194
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [air] reported by reviewdog 🐶
Suggested change
|
||||||||||||||||||||||||||||||||||||||||
| dplyr::mutate( | ||||||||||||||||||||||||||||||||||||||||
| ATTAINS.FlagParameterName = dplyr::case_when( | ||||||||||||||||||||||||||||||||||||||||
| ATTAINS.ParameterName == "Not Applicable for Analysis." | is.na(ATTAINS.ParameterName) ~ | ||||||||||||||||||||||||||||||||||||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [air] reported by reviewdog 🐶
Suggested change
|
||||||||||||||||||||||||||||||||||||||||
|
|
@@ -1243,11 +1207,37 @@ TADA_CreateParamRef <- function(.data, org_id = NULL, paramRef = NULL, auto_assi | |||||||||||||||||||||||||||||||||||||||
| dplyr::select( | ||||||||||||||||||||||||||||||||||||||||
| TADA.ComparableDataIdentifier, ATTAINS.OrganizationIdentifier, ATTAINS.ParameterName, | ||||||||||||||||||||||||||||||||||||||||
| ATTAINS.FlagParameterName, Flag.ParameterInput | ||||||||||||||||||||||||||||||||||||||||
|
Comment on lines
1208
to
1209
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [air] reported by reviewdog 🐶
Suggested change
|
||||||||||||||||||||||||||||||||||||||||
| ) %>% | ||||||||||||||||||||||||||||||||||||||||
| dplyr::distinct() | ||||||||||||||||||||||||||||||||||||||||
| ) | ||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||
| # remove intermediate object Flag1 | ||||||||||||||||||||||||||||||||||||||||
| rm(Flag1, Flag2) | ||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [air] reported by reviewdog 🐶
Suggested change
|
||||||||||||||||||||||||||||||||||||||||
| # paramRef %>% | ||||||||||||||||||||||||||||||||||||||||
| # dplyr::select(ATTAINS.OrganizationIdentifier, TADA.ComparableDataIdentifier, ATTAINS.ParameterName) %>% | ||||||||||||||||||||||||||||||||||||||||
| # dplyr::full_join( | ||||||||||||||||||||||||||||||||||||||||
| # CreateParamRef, | ||||||||||||||||||||||||||||||||||||||||
| # by = dplyr::join_by(ATTAINS.OrganizationIdentifier, TADA.ComparableDataIdentifier)) %>% | ||||||||||||||||||||||||||||||||||||||||
| # dplyr::mutate( | ||||||||||||||||||||||||||||||||||||||||
| # Flag.ParameterInput = dplyr::if_else( | ||||||||||||||||||||||||||||||||||||||||
| # paste(TADA.ComparableDataIdentifier, ATTAINS.ParameterName) %in% paste(paramRef$TADA.ComparableDataIdentifier, paramRef$ATTAINS.ParameterName), | ||||||||||||||||||||||||||||||||||||||||
| # "This crosswalk was provided through a user supplied table", | ||||||||||||||||||||||||||||||||||||||||
| # Flag.ParameterInput | ||||||||||||||||||||||||||||||||||||||||
| # ) | ||||||||||||||||||||||||||||||||||||||||
| # ) %>% | ||||||||||||||||||||||||||||||||||||||||
| # dplyr::mutate( | ||||||||||||||||||||||||||||||||||||||||
| # ATTAINS.FlagParameterName = dplyr::case_when( | ||||||||||||||||||||||||||||||||||||||||
| # ATTAINS.ParameterName == "Not Applicable for Analysis." | is.na(ATTAINS.ParameterName) ~ | ||||||||||||||||||||||||||||||||||||||||
| # "No ATTAINS.ParameterName crosswalk provided for TADA.ComparableDataIdentifier. Parameter will not be used for assessment.", | ||||||||||||||||||||||||||||||||||||||||
| # !ATTAINS.ParameterName %in% ATTAINS_param_all$ATTAINS.ParameterName ~ | ||||||||||||||||||||||||||||||||||||||||
| # "Parameter name is not included in ATTAINS, contact ATTAINS to add ATTAINS.ParameterName name to Domain List.", | ||||||||||||||||||||||||||||||||||||||||
| # ATTAINS.ParameterName %in% ATTAINS_param_all$ATTAINS.ParameterName & !paste(ATTAINS.OrganizationIdentifier, ATTAINS.ParameterName) %in% paste(ATTAINS_param_all$ATTAINS.OrganizationIdentifier, ATTAINS_param_all$ATTAINS.ParameterName) ~ | ||||||||||||||||||||||||||||||||||||||||
| # "Parameter name is listed as a prior cause in ATTAINS, but not for this organization.", | ||||||||||||||||||||||||||||||||||||||||
| # paste(ATTAINS.OrganizationIdentifier, ATTAINS.ParameterName) %in% paste(ATTAINS_param_all$ATTAINS.OrganizationIdentifier, ATTAINS_param_all$ATTAINS.ParameterName) ~ | ||||||||||||||||||||||||||||||||||||||||
| # "Parameter name is listed as a prior cause in ATTAINS for this organization" | ||||||||||||||||||||||||||||||||||||||||
| # ) | ||||||||||||||||||||||||||||||||||||||||
| # ) %>% | ||||||||||||||||||||||||||||||||||||||||
| # dplyr::select( | ||||||||||||||||||||||||||||||||||||||||
| # TADA.ComparableDataIdentifier, ATTAINS.OrganizationIdentifier, ATTAINS.ParameterName, | ||||||||||||||||||||||||||||||||||||||||
| # ATTAINS.FlagParameterName, Flag.ParameterInput | ||||||||||||||||||||||||||||||||||||||||
| # ) | ||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||
| # Excel ref files to be stored in the Downloads folder location. | ||||||||||||||||||||||||||||||||||||||||
|
|
@@ -1491,7 +1481,6 @@ TADA_CreateParamRef <- function(.data, org_id = NULL, paramRef = NULL, auto_assi | |||||||||||||||||||||||||||||||||||||||
| #' argument input, by joining the ATTAINS.WaterType of the AUs defined in | ||||||||||||||||||||||||||||||||||||||||
| #' your useAURef to the ATTAINS.WaterType found from ATTAINS Expert Query. | ||||||||||||||||||||||||||||||||||||||||
| #' | ||||||||||||||||||||||||||||||||||||||||
| #' | ||||||||||||||||||||||||||||||||||||||||
| #' Otherwise, users can still | ||||||||||||||||||||||||||||||||||||||||
| #' proceed by overriding the data validation by value pasting in Excel. | ||||||||||||||||||||||||||||||||||||||||
| #' Users will be warned in the ATTAINS.FlagUseName column if they choose to | ||||||||||||||||||||||||||||||||||||||||
|
|
@@ -1866,7 +1855,7 @@ TADA_CreateUseParamRef <- function(.data, org_id = NULL, paramRef = NULL, usePar | |||||||||||||||||||||||||||||||||||||||
| if ("IncludeOrExclude" %in% names(useParamRef)) { | ||||||||||||||||||||||||||||||||||||||||
| useParamRef <- useParamRef %>% | ||||||||||||||||||||||||||||||||||||||||
| 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")) | ||||||||||||||||||||||||||||||||||||||||
|
Comment on lines
1857
to
+1858
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [air] reported by reviewdog 🐶
Suggested change
|
||||||||||||||||||||||||||||||||||||||||
| } else { | ||||||||||||||||||||||||||||||||||||||||
| print("IncludeOrExclude was not found as a column name in your user supplied, assuming all parameter and uses are applicable for your analysis.") | ||||||||||||||||||||||||||||||||||||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [air] reported by reviewdog 🐶
Suggested change
|
||||||||||||||||||||||||||||||||||||||||
| useParamRef <- useParamRef %>% | ||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||
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 🐶