Skip to content

Instantly share code, notes, and snippets.

@zappingseb
Created July 16, 2019 07:53
Show Gist options
  • Save zappingseb/d910b5dc2fedcbce6e0f7a27d6a4831f to your computer and use it in GitHub Desktop.
Save zappingseb/d910b5dc2fedcbce6e0f7a27d6a4831f to your computer and use it in GitHub Desktop.
Data set reactive
data_set_reactive <- metaReactive({
event_data_filtered <- event_data %>% dplyr::filter(PARAMCD == !!input$filter_param)
ads_selected <- pat_data %>% dplyr::select(dplyr::one_of(c(!!input$select_regressor, c("SUBJID", "STUDYID"))))
merge(ads_selected, event_data_filtered, by = c("SUBJID", "STUDYID"))
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment