# Collapse substages (e.g., IIA -> II) into new column named collapsed_stages
#
collapse_stages <- function(dat, stage_column) {
return(dat %>% mutate(collapsed_stages = str_remove({{ stage_column }}, "[ABCD]")))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.