Add a row number column to reactable table in Shiny app R based on sorted column

Viewed 32

I have a reactable table in an R Shiny app that looks like this: enter image description here

Is there a way to add a row number or rank column that dynamically changes based on which column is sorted? So if the Carries column is sorted from high-to-low, the new column would have the player with the most carries as 1, the player with the second most carries as 2, so on and so forth. enter image description here

0 Answers
Related