I have a data frame which I would like to write it to a pdf file in organized fashion.
For example, my df looks like this:
Date County Trade
1
I really recommend you to use Rstudio with Knitr. It is very easy to create good reports.
For example,
\documentclass{article}
\begin{document}
<>=
library(xtable)
tab <- read.table(text = 'Date County Trade
1/1/2012 USA 5
1/1/2012 Japan 4
1/2/2012 USA 10
1/3/2012 Germany 15',header = TRUE)
print(xtable(tab),hline.after=c(2,3)) ## print.xtable have many smart options
@
\end{document}
