我不喜欢表的列不在一行;
我尝试了许多不同的选项,例如在创建表格或更改字体或边距之前添加
\tiny
如何强制表仅在一行中,也不要分开(即使这打破了页面或边距)?
集
width
在
options()
'setup'
代码块。
---
title: "Untitled"
author: "L"
date: "2025-03-13"
output: html_document
---
```{r setup, include=FALSE}
options(width=100)
```
```{r}
set.seed(84)
dt <- data.frame(month = rep(c(1:12), 10),
value = sample(c("A", "B", "C"), 120, replace = TRUE))
addmargins(round(prop.table(table(dt$value, dt$month), 1) * 100, 2))
```
找不到副本,刚刚发现了这一点。不敢相信。如果有人链接了骗子,我将删除。