Quantcast
Channel: Active questions tagged kable - Stack Overflow
Viewing all articles
Browse latest Browse all 109

How to knit rmd file to create an table with Chi-Squared and p symbols?

$
0
0

How to use math symbols of Chi-Squared and P in kable() function in Rmd file?

Following try did not work.

colnames(df) <- c("$\chi^2$ ", "$p$")table_df2 %>%  kable("latex", booktabs = T,  escape = FALSE, caption = "One-Sample Chi-Squared Test on Variance", digits = 3) %>%  kable_styling(latex_options = c("stripdown","hold_position"), font_size = 6)

Expected table


Viewing all articles
Browse latest Browse all 109

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>