I have the code:
i<-1
while(i<5)
{
  df+i <-data.frame()
  df+i<-c(i,i+1)
  i<-i+1
}
Instead  of i numbers are expected.  I want to create objects df1 ,df2, df3, etc.
I tried   assign(paste("a", i, sep = ""), i)
but its not working.
I have the code:
i<-1
while(i<5)
{
  df+i <-data.frame()
  df+i<-c(i,i+1)
  i<-i+1
}
Instead  of i numbers are expected.  I want to create objects df1 ,df2, df3, etc.
I tried   assign(paste("a", i, sep = ""), i)
but its not working.
 
    
    Try this:
for (i in 1:5){assign(paste("df",i,sep=""),data.frame())}
