How to batch analysis multiple data files in R
Step-by-step instructions on how to import & process multiple data files in R (based on the accuracy analysis of 200 cities) Technical details Challenges Visualization of results on the map I have some data collected for each city, each generated as one data file. And I need to run same analysis for all the 200 data files. I will go through the whole process in one post. It is not too complicated, which I suppose is why most posts I found online only address part of the issue. Summary of the process: 1. Write a program for a single data file that can do all the analysis correctly. 2. Combine functions to get a final function which will produce a single line of output for all the results I need. 3. Use functional ( lappy ) or a loop to iterate over indices of the batch of files, attach every line of results into a data frame or write into an output .csv file. 4. Start with small batches and trach which data file causes an error i...