Quantcast
Channel: Active questions tagged row - Stack Overflow
Viewing all articles
Browse latest Browse all 480

Adding greek letters as row entries in a results table in R

$
0
0

I am trying to create a results table in R (or Rmarkdown) and trying to add Greek letters for various parameters as row entries and can't seem to get it to work. Here is an example

library(knitr)library(xtable)library(tidyverse)df <- tibble(Truth = c(-0.75, 0.5), Post_Mean = c(-0.74, 0.52))Parameter <- c("$\\gamma$", "$\\beta$")dt <- tibble(Parameter = Parameter, df)dt# print(xtable(dt, type = "latex"), sanitize.text.function = function(x) {x})

I tried a few suggestions I found online but none seemed to work. Any ideas on how I can work around this?


Viewing all articles
Browse latest Browse all 480

Latest Images

Trending Articles



Latest Images

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