Re: [Rd] bug in rbind.data.frame with factors (PR#8868)

2006-05-16 Thread Rafal Kustra
On 5/16/06, Prof Brian Ripley <[EMAIL PROTECTED]> wrote: > > On Tue, 16 May 2006, Peter Ehlers wrote: > > > How is this a bug? From the help page for cbind/rbind: > > > > Description > > Take a sequence of vector, matrix or data frames arguments and > > combine by _columns_ or _rows_, respectively.

Re: [Rd] bug in rbind.data.frame with factors (PR#8868)

2006-05-16 Thread Prof Brian Ripley
On Tue, 16 May 2006, Peter Ehlers wrote: > How is this a bug? From the help page for cbind/rbind: > > Description > Take a sequence of vector, matrix or data frames arguments and > combine by _columns_ or _rows_, respectively. > (emphasis added) > > Note that it does _not_ say "combine by variable

Re: [Rd] bug in rbind.data.frame with factors (PR#8868)

2006-05-16 Thread Rafal Kustra
Agreed. Should have checked the help page. But then it should return an error msg, not try to do something and return an invalid result. rafal PS: perhaps rbind.data.frame should be more forgiving as to the order of variables, though. On 5/16/06, Peter Ehlers <[EMAIL PROTECTED]> wrote: > > How

Re: [Rd] bug in rbind.data.frame with factors (PR#8868)

2006-05-16 Thread Peter Ehlers
How is this a bug? From the help page for cbind/rbind: Description Take a sequence of vector, matrix or data frames arguments and combine by _columns_ or _rows_, respectively. (emphasis added) Note that it does _not_ say "combine by variable names". Peter Ehlers [EMAIL PROTECTED] wrote: > Full

[Rd] bug in rbind.data.frame with factors (PR#8868)

2006-05-16 Thread rafalku
Full_Name: Rafal Kustra Version: 2.1.1 OS: Linux, MacOS 10.3 Submission from: (NULL) (69.195.47.62) When Rbinding two data frames with factors, strange result occur (but no error) when the order of data frame variables is different in two data frames: > d1=as.data.frame(list(x=1:10,y=letters[1:1