Re: [Rd] rbind on data.frame that contains a column that is also a data.frame

2010-08-09 Thread Claudia Beleites
ssage- >> > From: r-devel-boun...@r-project.org >> > [mailto:r-devel-boun...@r-project.org] On Behalf Of Nicholas >> > L Crookston >> > Sent: Friday, August 06, 2010 8:35 AM >> > To: Michael Lachmann >> > Cc: r-devel-

Re: [Rd] rbind on data.frame that contains a column that is also a data.frame

2010-08-07 Thread Martin Maechler
rg] On Behalf Of Nicholas >> > L Crookston >> > Sent: Friday, August 06, 2010 8:35 AM >> > To: Michael Lachmann >> > Cc: r-devel-boun...@r-project.org; r-devel@r-project.org >> > Subject: Re: [Rd] rbind on data.frame that contains a

Re: [Rd] rbind on data.frame that contains a column that is also a data.frame

2010-08-06 Thread Heinz Tuechler
-Original Message- > From: r-devel-boun...@r-project.org > [mailto:r-devel-boun...@r-project.org] On Behalf Of Nicholas > L Crookston > Sent: Friday, August 06, 2010 8:35 AM > To: Michael Lachmann > Cc: r-devel-boun...@r-project.org; r-devel@r-project.org > Subject: Re: [Rd]

Re: [Rd] rbind on data.frame that contains a column that is also a data.frame

2010-08-06 Thread William Dunlap
bject: Re: [Rd] rbind on data.frame that contains a column > that is also a data.frame > > OK...I'll put in my 2 cents worth. > > It seems to me that the problem is with this line: > > b$a=a , where "s" is something other than a vector with > length equ

Re: [Rd] rbind on data.frame that contains a column that is also a data.frame

2010-08-06 Thread Nicholas L Crookston
OK...I'll put in my 2 cents worth. It seems to me that the problem is with this line: b$a=a , where "s" is something other than a vector with length equal to nrow(b). I had no idea that a dataframe could hold a dataframe. It is not just rbind(b,b) that fails, apply(b,1,sum) fails and so does pl

[Rd] rbind on data.frame that contains a column that is also a data.frame

2010-08-05 Thread Michael Lachmann
Hi, The following was already a topic on r-help, but after understanding what is going on, I think it fits better in r-devel. The problem is this: When a data.frame has another data.frame in it, rbind doesn't work well. Here is an example: -- > a=data.frame(x=1:10,y=1:10) > b=data.frame(z=1:10)