Skip to content

Commit

Permalink
Update ResultFlagsIndependent.R
Browse files Browse the repository at this point in the history
Moved location of flag.data to address check issue
  • Loading branch information
hillarymarler committed Jul 17, 2024
1 parent e6dc512 commit 4a469d0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions R/ResultFlagsIndependent.R
Original file line number Diff line number Diff line change
Expand Up @@ -309,9 +309,10 @@ TADA_FlagContinuousData <- function(.data, clean = FALSE, flaggedonly = FALSE, t
dplyr::mutate(TADA.ContinuousData.Flag = ifelse(ResultIdentifier %in% within_window$ResultIdentifier,
"Continuous", TADA.ContinuousData.Flag))

flag.data <- plyr::rbind.fill(cont.data, noncont.data)
}

flag.data <- plyr::rbind.fill(cont.data, noncont.data)

# flagged output, all data
if (clean == FALSE & flaggedonly == FALSE) {
flag.data <- TADA_OrderCols(flag.data)
Expand Down Expand Up @@ -347,7 +348,7 @@ if (nrow(flag.data[flag.data$TADA.ContinuousData.Flag == "Continuous",]) == 0) {
if (flaggedonly == FALSE) {
print("No evidence of aggregated continuous data in your dataframe. Returning the input dataframe with TADA.ContinuousData.Flag column for tracking.")
.data <- TADA_OrderCols(.data)

return(.data)
}

Expand Down

0 comments on commit 4a469d0

Please sign in to comment.