[R] Copy dataframe for another

RMSOPS ricardosousa2000 at clix.pt
Thu Mar 8 17:26:41 CET 2012


 
I'm trying to copy the results of a dataframe to another within a cycle for
but I am not able to implement the rbind, because give th

d<-Null
df<-NULL

for(r in 2: nrow(x))
    {
      val_user<-x.name[[r]]
      pos<-x.pos[[r]] -4
      age <-x.age[[r]]
      d<-data.frame(val_user,pos,)
      print(d)
    }
  df<-rbind(df,d)
}

someone can help me solve this

   Thanks

--
View this message in context: http://r.789695.n4.nabble.com/Copy-dataframe-for-another-tp4456879p4456879.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list