Re: [Rd] Commenting conventions

2011-01-14 Thread dhinds
Erik Iverson wrote: > dhi...@sonic.net wrote: > > This might be a dumb question, but I couldn't figure out how to find > > the answer: why is it that comments in R documentation files (i.e. in > > examples) typically start with a double hash (##) instead of a single > > hash? > See the second pa

Re: [Rd] matrix multiplication speed R

2011-01-14 Thread oyvfos
Thanks very much, Uwe. The calculation time is now comparable with matlab. Oyvind -- View this message in context: http://r.789695.n4.nabble.com/matrix-multiplication-speed-R-tp3217257p3217539.html Sent from the R devel mailing list archive at Nabble.com. ___

[Rd] How to point R toward Ghostscript on a Windows XP system

2011-01-14 Thread Jeremy Koster
A colleague designed a script for a bar plot, which I'd like to export to my directory via the barplot command: bitmap(file="barplot.tif", type="tifflzw", height=4, width=6.5, res=1250) Unfortunately, this command produces the following error message: Error in system(paste(gsexe, "-help"), int

[Rd] naresid.exclude query

2011-01-14 Thread Simon Wood
x <- NA na.act <- na.action(na.exclude(x)) y <- rep(0,0) naresid(na.act,y) ... currently produces the result... numeric(0) ... whereas the documentation might lead you to expect NA The behaviour is caused by the line if (length(x) == 0L) return(x) in `stats:::naresid.exclude'. Re

Re: [Rd] matrix multiplication speed R

2011-01-14 Thread Uwe Ligges
On 14.01.2011 11:38, Joris Meys wrote: Please give the code you used for the matrix multiplication. 5 times is a bit much. No, it is reasonable for matrix multiplication: Matlab ships with optimized BLAS for various CPU types. In R, you have to get an optimized BLAS yourself. How to link

Re: [Rd] matrix multiplication speed R

2011-01-14 Thread Joris Meys
Please give the code you used for the matrix multiplication. 5 times is a bit much. On Fri, Jan 14, 2011 at 9:09 AM, oyvfos wrote: > > Hi, > A quick bench-mark of an R matrix muliplication 500by500 X 500by1, all > random variates, with matlab reveals a huge difference in speed (5 times at >

[Rd] matrix multiplication speed R

2011-01-14 Thread oyvfos
Hi, A quick bench-mark of an R matrix muliplication 500by500 X 500by1, all random variates, with matlab reveals a huge difference in speed (5 times at least). Is there anything that can be done in R to speed up the multiplication? Kind regards, Oyvind -- View this message in context: http:/