I recommend that you should write some code to attempt this, and come to us with specific questions relating to where you get stuck.
perhaps I can assume you know how to read_csv's. if you want to know how to iterate / do repeated operations, you should study the purrr package.
If you want to know how to manipulate data.frames you should study the tidyverse.
There are books that can help you.