[Rd] Native implementation of rowMedians()
Henrik Bengtsson
hb at stat.berkeley.edu
Mon May 14 06:14:24 CEST 2007
Hi,
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:
source("http://www.braju.com/R/hbLite.R")
hbLite("R.native")
library(R.native)
example(rowMedians)
The source code package is available at:
http://www.braju.com/R/repos/R.native_0.1.2.tar.gz
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?
/Henrik
More information about the R-devel
mailing list