ordinalNr <- function(x) {
return(case_when((x == 1) ~ "1st",
(x == 2) ~ "2nd",
(x == 3) ~ "3rd",
TRUE ~ paste0(x, "th")));
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.