[R] How to change print behaviour within a markdown document
Eduardo M. A. M.Mendes
emammendes at gmail.com
Sat Aug 2 04:36:29 CEST 2014
Hello
I have the following chunk of code within a rmarkdown document:
```{r infoA, echo=FALSE, tidy=FALSE}
print(pAinfo,quote=FALSE,justify="center")
```
pAinfo is data.frame with 21 rows and 4 columns. Unfortunately the resulting html (or pdf) file does not show all the four columns together (the fourth column is placed below the first three columns) even though there is plenty of room to accommodate the last column.
Is there a way to control how print or rmarkdown breaks the data.frame in order to get all four columns together? Can I somehow control the font size too?
Many thanks
Ed
More information about the R-help
mailing list