当我使用 R Markdown (html_document) 打印数据框时,我得到下表(见下图)和以下示例代码:
title: "Motor Trend Car Road Tests"
output:
html_document:
df_print: paged
---
```{r}
mtcars
```
有没有办法隐藏与图像中黄色高亮对应的列类型?
最佳答案
一个选项 - 使用 DT 包。
---
title: "Motor Trend Car Road Tests"
output:
html_document:
df_print: paged
---
```{r}
DT::datatable(mtcars)
```
关于r - R Markdown 中的数据框打印 : how to hide column type?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46163466/