Skip to content
Prev 522 / 63421 Next

R-alpha: apply()

At 12:42 22/08/97, kurt.hornik@ci.tuwien.ac.at wrote:

            
It is strange, but logical.  The problem is that it's an undocumented
feature. If the help page said something like "If the calls to FUN
return vectors of different lengths then apply returns a list of
length dim(x)[MARGIN]" then it would be less surprising. Or would you
prefer that apply returns an error message if it can't coerce the
result to an array?

Martyn

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-