I’m working on making a table using the table1
package in R. One of my variables is measured in mm^3. I’m not able to get a superscript using the table1()
function when I assign the unit for this variable as units(df$volume) <- expression("mm"^"3")
. The table outputs without the superscript and pastes the argument within the expression() function. Is there a way to show this as a superscript? Thanks