我想使用kableExtra制作如图所示的表格。
我正在尝试使用下面的R代码块,但我得到了意外的结果。你能告诉我如何修复它吗?
```{r, echo=FALSE}
library(kableExtra)
df <- data.frame(
Operator = c("`==`", "`!=`", "`>`", "`<`", "`>=`", "`<=`"),
Interpretation = c("Equal to", "Not equal to", "Greater than", "Less than", "Greater than or equal to", "Less than or equal to")
)
df %>% kbl() %>% kable_styling(bootstrap_options = c('striped', 'hover', 'condensed'))
![](https://i.stack.imgur.com/nmpBm.png)
1条答案
按热度按时间c3frrgcw1#
这是我能做的最接近