Vorrei inserire del testo lungo nella tabella di Kable. Ecco un semplice esempio di una tabella con testo di colonna troppo lungo e che deve essere incapsulata affinché la tabella si adatti alla pagina.avvolgere il testo lungo nella colonna della tabella kable
---
title: "test"
output: pdf_document
---
```{r setup, include=FALSE}
library(knitr)
```
This is my test
```{r test, echo=FALSE}
test <- data.frame(v1=c("This is a long string. This is a long string. This is a long string. This is a long string. This is a long string.",
"This is a another long string. This is a another long string. This is a another long string. This is a another long string. This is a another long string."),
v2=c(1, 2))
kable(test)
```
sembra molto lucido, @daroczig. c'è un argomento per i nomi delle colonne? scusa se l'ho perso –
Grazie @EricGreen. Quale argomento ti manca per i nomi? Probabilmente è meglio impostarli al livello 'data.frame'. – daroczig
'kable' ha' col.names' per ridefinire "v1" in "My text" –