Re: [Rd] Documentation request Re: [R] recode categorial vars into binary data

2013-05-14 Thread Hervé Pagès
Hi Martin, On 05/14/2013 08:44 AM, Martin Maechler wrote: [...] PS: Are there other suggestions to help people *stop* using ifelse(A, B, C) in those many places where they should use if(A) B else C ? Or to help people stop using if (... & ...) if (... | ...) i

[Rd] Documentation request Re: [R] recode categorial vars into binary data

2013-05-14 Thread Martin Maechler
> David Winsemius > on Mon, 13 May 2013 10:21:33 -0700 writes: > On May 7, 2013, at 10:54 AM, Chris Stubben wrote: >> >>> First off, stop using cbind() when it is not needed. You will not see the reason when the columns are all numeric but you will start experiencing p

[Rd] Documentation request Re: [R] recode categorial vars into binary data

2013-05-13 Thread David Winsemius
On May 7, 2013, at 10:54 AM, Chris Stubben wrote: > >> First off, stop using cbind() when it is not needed. You will not see the >> reason when the columns are all numeric but you will start experiencing pain >> and puzzlement when the arguments are of mixed classes. The data.frame >> functio