I am trying to use for loop in R to create separate data frames for my split result. It may have better solutions but I am a beginner in R so any comments are appreciated.
''' For example: '''
For (i in 1:100)
{i<-df[[i]]}
''' I expect to get something like
'1' equal to df[[1]]
'2' equal to df[[2]]
'3' equal to df[[3]]
.
.
.
'i' equal to df[[i]]
but it only gets the last i
:
'100' which is equal to df[[100]]
How can I get separate data frames for each i
?