search for: zhandong

Displaying 3 results from an estimated 3 matches for "zhandong".

Did you mean: handing
2008 Apr 30
8
Why R is 200 times slower than Matlab ?
...x] = fc_vector[i] fc_matrix[index+1] = fc_vector[j] index = index+2 } } return(fc_matrix) } For an input vector of size 300. It took R 2.17 seconds to run. But the same code in matlab only needs 0.01 seconds to run. Am I missing sth in R.. Is there a away to optimize. ??? Thanks -- Zhandong Liu Genomics and Computational Biology University of Pennsylvania 616 BRB II/III, 421 Curie Boulevard University of Pennsylvania School of Medicine Philadelphia, PA 19104-6160 [[alternative HTML version deleted]]
2008 May 09
1
how to plot two graphs in one figure
Dear helpers, I am trying to plot two survival curves in the same figure. plot(survival) // in matlab, one just need to call "hold on" plot(survival2) I am wondering how to do it in R. Thank you very much! -- Zhandong Liu Genomics and Computational Biology University of Pennsylvania 616 BRB II/III, 421 Curie Boulevard University of Pennsylvania School of Medicine Philadelphia, PA 19104-6160 [[alternative HTML version deleted]]
2008 Apr 30
0
Fwd: Why R is 200 times slower than Matlab ?
...dexing on the last line? url: www.econ.uiuc.edu/~roger Roger Koenker email rkoenker at uiuc.edu Department of Economics vox: 217-333-4558 University of Illinois fax: 217-244-6678 Champaign, IL 61820 On Apr 30, 2008, at 3:15 PM, Zhandong Liu wrote: > I am switching from Matlab to R, but I found that R is 200 times > slower than > matlab. > > Since I am newbie to R, I must be missing some important programming > tips. > > Please help me out on this. > > Here is the function: > ## make the full p...