I'm struggling to format Name
column in such a way that it adds an upper subscript when the Value
column is larger than 10. Any suggestions? Here is a sample dataset.
tibble(Name = LETTERS[1:10],
Value = sample(5:15,10))
The result should be like this:
A^1
when Value is greater then 10