Description Usage Arguments Examples
View source: R/get_ord_numbers.R
Function that accepts a column of R Integer values (typically from a Rank column or when using row_number) and returns Ordinal Numbers (1st, 2nd, 3rd etc).
1 |
df |
numeric |
1 2 3 4 | df2 <- df %>%
arrange(sales) %>%
mutate(Rank = row_number(),
Rank_ord = get_ord_numbers(Rank))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.