21
I analyze measurements from many cities (hundreds), and need to create separate reports per city (in Adobe pdf-format).
My process is like this:
- First RStudio to prepare the data to be shown, saved in X.Rda.
- In X.Rnw (RStudio) I read X.Rda, select one city, and produce the tables and plots.
- In RStudio I press "Compile PDF" and the city-report X.pdf is produced.
- I go to step 2, choose another city, and so on.
This is very tedious, and looks perfect for a for-loop per city, but how can it be done?
Thank you r-contributors!
/Chris