I want to create a several dataframes in a loop (in R) And the name of each dataframe consists of a name + loop index. For example:
B1, B2, B3, ...,B10 1 until 10 are loop indexes
Now, i want to access these dataframes that is, when calling Bi, it will show its contents. For example:
for (i in 1:10) {
compare (Bi $ label, test $ label)
}
I've run the following code in R, but in the next steps I can not use dataframes
> for(i in 1:4){
+ df.name<-paste("B",i)
+ df.name[i]<-i+1
+ print(df.name[i])}
How can I do this? Thanks for your help