Monthly Archives: June 2010

Shrinking R’s PDF output

June 17, 2010
By
Shrinking R’s PDF output

R is great for graphics, but I've found that the PDF's R produces when drawing large plots can be extremely large. This is especially common when using spplot() to plot a large raster. I've made a 15 page PDF full of rasters that was hundreds of MB in ...

Read more »

A new Q&A website for Data-Analysis (based on StackOverFlow engine) – is waiting for you

June 17, 2010
By
A new Q&A website for Data-Analysis (based on StackOverFlow engine) – is waiting for you

What is the StackOverFlow Q&A website about? StackOverFlow.com (“SO” for short) is a programming Q & A site that’s free. Free to ask questions, free to answer questions, free to read. Free, And fast. For the R community, SO offers a growing database of R related questions and answer (click the link to check them out). You might be asking yourself what’s...

Read more »

Learning R

June 17, 2010
By

When R is brought up as a possibility for doing statistics or data mining or any sort of predictive analytics among non R users, someone will invariably point out that R has a “steep learning curve”, and the response among those gathered usually includes a significant amount of head nodding. Even those who have put in heroic efforts to...

Read more »

Comparing standard R with Revoutions for performance

June 17, 2010
By
Comparing standard R with Revoutions for performance

Following on from my previous post about improving performance of R by linking with optimized linear algebra libraries, I thought it would be useful to try out the five benchmarks Revolutions Analytics have on their Revolutionary Performance pages.

Read more »

Comparing standard R with Revoutions for performance

June 17, 2010
By
Comparing standard R with Revoutions for performance

Following on from my previous post about improving performance of R by linking with optimized linear algebra libraries, I thought it would be useful to try out the five benchmarks Revolutions Analytics have on their Revolutionary Performance pages.

Read more »

Calling Ruby, Perl or Python from R

June 16, 2010
By
Calling Ruby, Perl or Python from R

If you want to interact with other programming languages from R, there are various packages and bindings available. These packages provide a pretty high degree of integration between the langages and allow you to pass objects back and forth seemlessl...

Read more »

Conferenza a Padova

June 16, 2010
By
Conferenza a Padova

Today and tomorrow, I am attending the annual Italian statistical society meeting. While I appreciate very much the invitation, as well as the opportunity to walk through  Padova and Venezia for a short (and alas rainy!) hour on the way there (leaving home at 8am, walking in Venezia at noon!), I am rather skeptical of

Read more »

Mary, Chloe, and Miriam at breakfast

June 16, 2010
By
Mary, Chloe, and Miriam at breakfast

Read more »

R-help follow-up: truncated exponential

June 16, 2010
By
R-help follow-up: truncated exponential

I recently posted the message below with regard to sampling from the truncated exponential distribution. I left out the derivation of the CDF (mostly because text math is ugly), so I’ve included it here. There is also a short JSS article about truncated distributions in R. This problem in particular may likely be found in

Read more »

R Sapply Problem

Any expert in R please educates me. I have got a problem about the sapply (or lapply), it made me headache for over two hours.

As "for loop" is very slow in R, we should try best to avoid using it, and to use vectorization instead. sapply is designed for this, for example, instead of:

for (i in 1:10) {
z <-...

Read more »