Skip to content

Commit

Permalink
ifelse error
Browse files Browse the repository at this point in the history
  • Loading branch information
smritia committed Sep 19, 2024
1 parent 519c3d4 commit 6594b54
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion R/mod_generic_filters.R
Original file line number Diff line number Diff line change
Expand Up @@ -436,9 +436,14 @@ mod_generic_filters_server <-
# Mentry processing - common
if (!tolower(repName()) %in% c("tornado_plot", "event analysis", "km plot")) {
print("Start Mentry process")
if (toupper(domain()) == "ADAE") {
datain <- rv$ae_pre
} else {
datain <- sourcedata()[[domain()]]
}
withProgress(
rv$ment_out <- mentry(
datain = ifelse(toupper(domain() == "ADAE"), rv$ae_pre, sourcedata()[[domain()]]),
datain = datain,
subset = input$overall_subset,
byvar = byv,
subgrpvar = NA, # take input$subgrpvar as required here
Expand Down

0 comments on commit 6594b54

Please sign in to comment.