Welcome to WuJiGu Developer Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
370 views
in Technique[技术] by (71.8m points)

R Markdown xtable format parts of caption

how to format one word of a caption in verbatim code? I want to format the word swiss of the caption:

```{r echo=FALSE}
swisstable <- sapply(swiss,function(x) {
  c(Mean = mean(x))
} )
```

```{r echo=FALSE}
swisstable <- xtable(swisstable, auto = TRUE)
```

```{r results='asis', echo=FALSE}
xtable(swisstable, digits = 1, environment = left, caption = "überblick über den Datensatz swiss")
```

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to WuJiGu Developer Q&A Community for programmer and developer-Open, Learning and Share
...