![]() Note also that making the kable'd tables this way meant putting results="asis" in the chunk options. These tables can be inserted into powerpoint slides, HTML pages, PDF or Word documents, etc. Leaving things off there would get map's default of printing names as well, which isn't ideal, so I added a call to purrr::walk to print them neatly. This page demonstrates how to convert summary data frames into presentation-ready tables with the flextable package. 2.7.1 A brief example of markdown 2.8 Your Turn 2.9 R Markdown helps complete the solution to the reproducibility problem 2.10 Summary 2.11. The resulting list of data frames each gets passed to knitr::kable and kableExtra::kable_styling. 2.1 Overview 2.2 Questions 2.3 Objectives 2.4 Your Turn 2.5 Reproducibility is a problem 2.6 Literate programming is a partial solution 2.7 Markdown as a new player to legibility. Then each of those vectors becomes the column indices in select. I underestimated the work to do that, but got ideas from an old SO post to rep the numbers 1 to 20 along the number of columns, sort it, and use that as the grouping then to split the columns. ![]() ![]() Next, I changed the Slide Size of ref. I used command pandoc -print-default-data-file reference.pptx > ref.pptx to create the ref.pptx as template, knitted a new PowerPoint file ABC.pptx using that template and it works fine. My thinking with this was to make a list of vectors of column indices to choose, such that the first list item is 1:20, the second is 21:40, and so on, in order to break the data into 20 tables of 5 columns each (the number you use can be a different factor of ncol(data)). Hello, Came across a strange issue when using RMarkdown to create PowerPoint. I used some tidyverse functions, specifically dplyr::select to get columns and purrr::map to move along groups of column indices. This question is actually trickier than I thought at first glance.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |