Displaying 1 result from an estimated 1 matches for "columwise".
Did you mean:
columnwise
2002 Mar 30
2
Inconsistency among mean, median, max, var
I found a strange inconsistency:
If m is a matrix and d is a data frame then
- mean(m), median(m), max(m) and max(d) all return a single value
but
- mean(d) returns the column means
- median(d) fails
- both var(m) and var(d) return the variance covariance matrix
You pretty much have to experiment to figure this out since much of this
behavior is not readily obvious from the help files.