I analyze measurements from many cities (hundreds), and need to create separate reports per city (in Adobe pdf-format).

My process is like this:

  1. First RStudio to prepare the data to be shown, saved in X.Rda.
  2. In X.Rnw (RStudio) I read X.Rda, select one city, and produce the tables and plots.
  3. In RStudio I press "Compile PDF" and the city-report X.pdf is produced.
  4. 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

Edit
Report