#' drg statistics
#'
#' @param data
#' @param f
#'
#' @return numeric number
#' @export
#'
#' @examples
#'
drg_stat <- function(data, f){
drg_new <- data %>%
mutate(drgCode = as.factor(substr(DRG.Definition, start = 1, stop = 3)))
as.numeric(drg_new$drgCode) %>% f()
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.