#' preprocess the data
#'
#' @param data
#'
#' @return df
#' @export
#'
#' @import dplyr
#' @import ggplot2
#'
#' @examples preprocess(DRG_data)
#'
#'
preprocess <- function(data){
names(data) <- make.names(names(data))
data <- data %>%
group_by(DRG.Definition) %>%
mutate(DRG = strsplit(as.character(DRG.Definition), split = ' ')[[1]][1]) %>%
ungroup()
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.