Re: [Rd] Native implementation of rowMedians()

From: Martin Maechler <>
Date: Mon, 14 May 2007 10:20:27 +0200

Hi Henrik,
>>>>> "HenrikB" == Henrik Bengtsson <>
>>>>> on Sun, 13 May 2007 21:14:24 -0700 writes:

    HenrikB> Hi,
    HenrikB> I've got a version of rowMedians(x, na.rm=FALSE) for matrices that
    HenrikB> handles missing values implemented in C.  It has been optimized for
    HenrikB> memory and speed.  To avoid coercing integers to doubles, and hence
    HenrikB> allocate an additional 200% memory, there is one C function for
    HenrikB> integers and one for doubles.

    HenrikB> The rowMedians() implementation is currently sitting in my non-CRAN     HenrikB> package R.native available by:

    HenrikB> source("")
    HenrikB> hbLite("R.native")
    HenrikB> library(R.native)
    HenrikB> example(rowMedians)

    HenrikB> The source code package is available at:


    HenrikB> Before I submit a package to CRAN consisting of pretty much just
    HenrikB> rowMedians(), would it make more sense for it to go into one of the
    HenrikB> core packages?  If so, how should I proceed?

As they say: You have to convince at least one member of R-core that ``it's worth it''. {Then he may have to bear the battle with dissenting core members ;- }

I'm quite interested, but really you have to do the work of unbundling it from all the R.oo stuff before I have another longer look.

Martin mailing list Received on Mon 14 May 2007 - 08:23:03 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Mon 14 May 2007 - 10:33:14 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.