So I have multiple data frames and I'm trying to calculate the sum of specific columns and store within a new column in the data frame for EACH data frame and I'm not sure how to go about it. So far, I can run a for loop for a single dataframe:
for (i in nrow(df1)){df1$newcolumn <-(df1$a + df1$b + df1$c)}
But if I have multiple data frames (df1,df2,df3,...), how do I do this? The column names are the same for each dataframe.
Thank you!