将斜体字放入 xtable 标题中
Putting Italics into an xtable caption
我正在 R-markdown 做一个项目。我一直试图让 'n' 变为斜体,但我不断收到错误消息。下面列出的是我最近的尝试。
```{r, echo=FALSE, message=FALSE, warning=FALSE, results="asis"}
print(xtable(describe(PDS_Admin[3:15]), align="lccccccccccccc",
caption=paste("Descriptive Statistics for PDS Administrators", italic(n), "= 13")),
type="latex", caption.placement= "top", comment=F, latex.environments ="flushleft")
```
我知道这似乎是一个平凡的细节。请帮忙!
我正在 R-markdown 做一个项目。我一直试图让 'n' 变为斜体,但我不断收到错误消息。下面列出的是我最近的尝试。
```{r, echo=FALSE, message=FALSE, warning=FALSE, results="asis"}
print(xtable(describe(PDS_Admin[3:15]), align="lccccccccccccc",
caption=paste("Descriptive Statistics for PDS Administrators", italic(n), "= 13")),
type="latex", caption.placement= "top", comment=F, latex.environments ="flushleft")
```
我知道这似乎是一个平凡的细节。请帮忙!