How do you underline column names in R?
I tried saving a string and then using that with
library(crayon)
string1 <- underline("hello")
string2 <- underline("hello2")
colnames(table) <- c(string1, string2)
However string1 prints as "\033[4mhello\033[24m"
.
String2 prints as "\033[4mhello2\033[24m"
Please let me know how I can get the column names to be underlined.
I just want the column names to stand out, even changing the colour of the text when it prints to the console would be fine