Latex command are not formatting the column names as I intended.
library(kableExtra)
kable(test,"latex", col.names = c('Mean','\\textit{N}' ,'Strongly\nDisagree','Disagree','Neither Agree\norDisagree','Agree','Strongly\nAgree'))
The output I am getting is:
https://www.dropbox.com/s/xvl7lfh94bl2274/Kable%20Table.PNG?dl=0
I have tried both latex commands and R-markdown commands.
The N should be italicized and Strong disagree, Neither Agree or Disagree, and Strongly Agree should be broken up on two lines.