I want to access data frames in a loop(df_1,df_2,df_3,df_4).So I tried to use the following code
for(i in 1:4){
total[i]=sum(paste0("df_",i)$percentage)
}
But it throws the error operator invalid for atomic vector.So how is it possible to read the data frames in a loop?