Re: [R] R function implementation

2011-12-07 Thread jim holtman
Before rewriting in C, especially if you are new at it, have you profiled (Rprof) your function to see the time is being spent? Are you using dataframe or matrices; there is a big speed different between them when accessing data. So profile your code, see where the time is spent and then decide w

[R] R function implementation

2011-12-07 Thread Diviya Smith
Hello there, I recently wrote some code to perform pairwise correlations between all samples in a large dataset. So we are talking about performing pairwise correlations between 400K vectors. Since R has a very rich library of functions, it was very easy to code this in R. However, R was probably