你如何在 R 中为列名加下划线?
我尝试保存一个字符串,然后使用它
library(crayon)
string1 <- underline("hello")
string2 <- underline("hello2")
colnames(table) <- c(string1, string2)
但是 string1 打印为"\033[4mhello\033[24m"
.
String2 打印为"\033[4mhello2\033[24m"
请让我知道如何让列名加下划线。
我只想让列名脱颖而出,即使在打印到控制台时更改文本的颜色也可以