Skip to content
Prev 360144 / 398503 Next

Bug in by() function which works for some FUN argument and does not work for others

Dear All,

I have got your core message, that it is my responsibility to determine
whether any particular function in my version of R satisfies the language
requirements at the time of your use. Jim Albert and Maria Rizzo must have
used their code, which was permitted in the R-code of their time (2012).

Therefore, I have now modified my R-code, as per R-3..2.4 version,
according to my requirement as follows, which is working for my 'brain'
data set, whose output is reproduced below for your information please:
na.rm=FALSE) sapply(x, mean, na.rm=na.rm), na.rm=TRUE)
Gender: Female
      FSIQ        VIQ        PIQ     Weight     Height  MRI_Count
   111.900    109.450    110.450    137.200     65.765 862654.600
--------------------------------------------------------------------------------------------------
Gender: Male
        FSIQ          VIQ          PIQ       Weight       Height
 MRI_Count
   115.00000    115.25000    111.60000    166.44444     71.43158
954855.40000

With best regards,

Dr. A.K. Singh
Head, Department of Agril. Statistics
Indira Gandhi Krishi Vishwavidyalaya, Raipur
Chhattisgarh, India, PIN-492012
Mobile: +919752620740
Email: akhileshsingh.igkv at gmail.com

On Fri, Apr 15, 2016 at 2:24 PM, David Winsemius <dwinsemius at comcast.net>
wrote: