Convert Shiny input into a modified function input

So I have a Shiny app that has a selectInput with the options of "RB", "WR", and "TE". As part of the server, I then use the fct_reorder() function from the forcats package. For this, I need to turn an input into the form of rb_percent (or wr_percent or te_percent). Is there a simple way to do this? Thanks for the help!

Maybe this? Or is there more to this question that I didn't catch?

This topic was automatically closed 54 days after the last reply. New replies are no longer allowed.