I'm using dplyr
, kabble
, and kableextra
to create some tables in R. I'm converting the tibble
outputs from dpylr
chains for tables in a report. I'd like to have the rank included as a column in a tibble
that I then pipe into a kabble
table. Is there a way to do this using mark-up or perhaps an R package that has the numeric expressions for ranks (i.e., 1st, 2nd, 3rd)?
I've tried this, but with many ranks it is impractical. Something similar to LETTERS
would be good.
expression('1^st')
expression('2^nd')