See comments in the code. In essence, you write a function which should be performed on each data.frame and use it lapply or sapply to perform this operation on each data.frame. Since you put these data.frames into a list, use of lapply or sapply is very convenient.