[R] Copy dataframe for another

Sarah Goslee sarah.goslee at gmail.com
Thu Mar 8 17:37:14 CET 2012


What exactly are you trying to do?

We can't replicate your code because we don't have your data,
we don't know what your objective is, and we don't know what
went wrong.

Also, Null and NULL are not the same thing.

On Thu, Mar 8, 2012 at 11:26 AM, RMSOPS <ricardosousa2000 at clix.pt> wrote:
>
> 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
>
-- 
Sarah Goslee
http://www.functionaldiversity.org



More information about the R-help mailing list