[R] more strange behavior of Revolution R 1.3.0

2009-09-24 Thread Jason Liao
setMKLthreads(1) > system.time(for(i in 1:n.simu) func1()) user system elapsed 69.482.42 71.91 > > setMKLthreads(8) > system.time(for(i in 1:n.simu) func1()) user system elapsed 179.06 17.90 41.70 Jason Liao [[alter

Re: [R] My surprising experience in trying out REvolution's R

2009-04-24 Thread Jason Liao
. Jason -Original Message- From: David M Smith [mailto:da...@revolution-computing.com] Sent: Thursday, April 23, 2009 6:05 PM To: Jason Liao Cc: r-help@r-project.org Subject: Re: [R] My surprising experience in trying out REvolution's R We've taken a look at this in a bit more deta

[R] My surprising experience in trying out REvolution's R

2009-04-21 Thread Jason Liao
I care a lot about R's speed. So I decided to give REvolution's R (http://revolution-computing.com/) a try, which bills itself as an optimized R. Note that I used the free version. My machine is a Intel core 2 duo under Windows XP professional. The code I run is in the end of this post. First,

[R] A question about using function plot

2008-07-14 Thread Jason Liao
Hello, everyone! I have spent two hours to get what I wanted in a simple situation and have not been successful. The set up is extremely simple x = c(1,2,4,8) y = c(1,2,3,4) plot(x, y) What I need, however, is for the 4 points of 1,2,4,8 to be spaced evenly, not by their numerical scale. Also,

[R] fastest way to compute the squared Euclidean distance between two vectors in R

2008-01-31 Thread Jason Liao
the R-help archives and can not find anything except when the arguments are matrices. Thanks for any lead. Jason Jason Liao, http://www.geocities.com/jg_liao Associate Professor of Biostatistics Drexel University School of Public Health 1505 Race Street, Mail Stop 1033 Bellet Building, 6th

Re: [R] help needed: taking a function out of a package and it can not find some funtions

2007-11-06 Thread Jason Liao
Simple solution provide by Prof. Ripley is to modify the relevant code as follows (he posted in the R-development group): SDh <- function(x, h, n, d) .C(stats:::R_band_phi4_bin, as.integer(n), as.integer(length(x)), as.double(d), x, as.double(h), u = double(1))$u TDh

[R] help needed: taking a function out of a package and it can not find some funtions

2007-11-06 Thread Jason Liao
understand well. Can anyone tell me how to modify the source code of an R function and still make it part of an existing package? Thanks. Jason Liao, http://www.geocities.com/jg_liao Associate Professor of Biostatistics Drexel University School of Public Health 245 N. 15th Street, Mail Stop