I want to create N slides to send descriptive statistics for N subsets of (large) data using the slidify package. In the previous discussion, Create parametric documentation R markdown? a combination of brew and knitr was recommended.
I am wondering if slidify its workaround for such a task? I assume that repeating the data to fill the slides is even more logical than for plain text ...
Minimal example (from the above question I need slides instead of paragraphs)
```{r loopResults, echo=FALSE, results='asis'} results = list(result1 = data.frame(x=rnorm(3), y=rnorm(3)), result2=data.frame(x=rnorm(3), y=rnorm(3))) for(res in names(results)) { cat(paste("<h3>Results for: ", res, "</h3>>")) plot(results[[res]]$x, results[[res]]$y) }
source share