[Rd] Native implementation of rowMedians()

Henrik Bengtsson hb at stat.berkeley.edu
Mon May 14 06:14:24 CEST 2007


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

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


The source code package is available at:


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


More information about the R-devel mailing list