Displaying 1 result from an estimated 1 matches for "laram".
Did you mean:
param
2000 Sep 23
3
bug in apply with median
I have found a problem in R version 1.1.1 when using apply with the
median function.
The problem can be illustrated with the following data matrix:
X1 X2 X3
1 2 3
4 5 6
7 8 NA
Enter this data matrix as X and then try
apply(X,2,median,na.rm=T)
The problem here is that the median function returns a named scalar if
the number of
observations is odd, but returns an