R/get_numeric_variables.R

Defines functions get_numeric_variables

Documented in get_numeric_variables

## Some helper functions to simplify our app
## from this tutorial https://laderast.github.io/gradual_shiny/app-3-adding-tooltips-with-plotly.html
#' Return the numeric categorical variables 
#'
#' 
#' @return
#' @export
#' 
get_numeric_variables <- function(df){
  varClass <- sapply(df, class)
  
  numericVars <- names(varClass[varClass %in% c("numeric", "integer")])
  return(numericVars)
}
sbalci/histopathRshiny documentation built on March 27, 2023, 10:09 a.m.