Skip to content
Prev 360113 / 398503 Next

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

Books don't rewrite themselves retroactively....

NEWS for 3.0.0 has

   ? mean() for data frames and sd() for data frames and matrices are
      defunct.

and 3.0.0 was released April 3, 2013.

A book published in 2012 would likely be based on R 2.13.x or maybe even 2.12.x.

So mean(dataframe) worked in the past. It was changed because of inconsistencies, e.g. mean(as.matrix(dataframe)) is a single number, median.data.frame never existed, var(dataframe) differed from sd(dataframe)^2, etc. The deprecation/defunct process started with 2.14.0-pre in October 2011.

-pd
On 15 Apr 2016, at 10:16 , Akhilesh Singh <akhileshsingh.igkv at gmail.com> wrote: