Re: [R] aggregate.data.frame - prevent conversion to factors? show statistics for NA values of by variable?

2007-08-02 Thread Thomas Pujol
I tried setting exclude = . I'm not sure, but to me, it did not seem to work as expected. But i did have success with exclude = NULL. (I'm using R 2.4.1) mydata=c(33,22,44,NA,33,22,NA) myfactor.try1 = factor(mydata, exclude=) myfactor.try2 = factor(mydata, exclude=NULL)

[R] aggregate.data.frame - prevent conversion to factors? show statistics for NA values of by variable?

2007-07-31 Thread Thomas Pujol
I have a two question regarding the aggregate.data.frame method of the aggregate function. My situation: a. My x variable is a data.frame (mydf) with two columns, both columns of type/format numeric. b. My by variable is a data.frame(mybys) with two columns, both columns of type/format

Re: [R] aggregate.data.frame - prevent conversion to factors? show statistics for NA values of by variable?

2007-07-31 Thread Prof Brian Ripley
The behaviour has been changed in the R-devel version of R, so the 'by' columns are not converted to factors. On Tue, 31 Jul 2007, Thomas Pujol wrote: I have a two question regarding the aggregate.data.frame method of the aggregate function. My situation: a. My x variable is a data.frame