writing data frame to pdf table

后端 未结 4 1950
青春惊慌失措
青春惊慌失措 2020-12-05 12:46

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         


        
4条回答
  •  盖世英雄少女心
    2020-12-05 12:55

    As of 2017, there is good support in R-studio presentation formats (Markdown) with package "pander", and output to PDF via Beamer. See pander : http://rapporter.github.io/pander/#pander-an-r-pandoc-writer

    Example in R-studio presentation code to print a data frame as table :

    ```{r}    
    pander(df)
    ```
    

提交回复
热议问题