Shiny R using input-variables for dynamic dplyr creation of dataTables
问题 Target: Building a shiny-app which enables the user to make 3 inputs via Groupcheckboxfields: Groupingvariables Metricvariables Statistics which are used in dplyr look at this code first - it is executed without shiny and displays the to be achived results: library("plyr") library("dplyr") ## Without shiny - it works! groupss <- c("gear", "carb") statistics <- c("min", "max", "mean") metrics <- c("drat", "hp") grp_cols <- names(mtcars[colnames(mtcars) %in% groupss]) dots <- lapply(grp_cols,