Skip to content
Prev 20173 / 63421 Next

Suggestions to speed up median() and has.na()

On Mon, 10 Apr 2006, Duncan Murdoch wrote:

            
That makes sense. I have just tried, and for vectors of length ten 
million it does make a measurable difference.
I wasn't proposing that it should be stupid, just not generic.  It could 
support data frames (sum(), does, for example). If it didn't support data 
frames it should certainly give an error rather than the wrong answer, but 
if we are seriously trying to avoid delays around 0.1 seconds then going 
through the generic function mechanism may be a problem.


 	-thomas