Very easy question but I cannot find a solution.
I have a list of data frames (part1,part2,part3)
dfList = list(part1,part2,part3)
And I would like to calculate for each of the data frames new columns.
part1$sum
part1$rest
So I don't want to write the code for each single data frames in the list and, since the new columns are identicals for all data frames, I was thinking to use a loop, so I can write the code for one operation and that's it!
How can I do it?
Thank you! :)