I am familiar with the R markdown options.
However, let's say I want to create the same report (the same graph, the same table), but for 5 different regions.
Is there a way to do this gracefully in a loop or foot or do I need to make several sections. So in the pseudocode, I want to do something like:
for(i in 1:5): Bunch of text table[i] plot[i]
Instead
bunch of text table[1] plot[1] bunch of text table[2] plot[2] ...
In other words, I want to function a βsectionβ of the report, and then I can call
for(i in 1:5): makeReport(i)
And he will go in, put the text, numbers, etc., associated with the index i.
source share