Blog Archives

Using R — Easier Error Handling with try()

This entry is part 6 of 21 in the series Using R

In a previous post we looked at error handling in R with the tryCatch() function and how this could be used to write Java style try-catch-finally blocks. This time we’ll look at what can be done with the try() function …   read more …

Posted in R | Tagged , | 4 Comments

Using R — Calling C Code ‘Hello World!’

This entry is part 7 of 21 in the series Using R

One of the reasons that R has so much functionality is that people have incorporated a lot of academic code written in C, C++, Fortran and Java into various packages.  Libraries written in these languages are often both robust and …   read more …

Posted in R | Tagged , , | 9 Comments

Using R — Standalone Scripts & Error Messages

This entry is part 8 of 21 in the series Using R

Open-source R is an amazing tool for statistical analysis and data visualization. Serious R gurus have found ways to do just about anything entirely within the R environment. Nevertheless, there are many of us who wish to plug R into …   read more …

Posted in R | Tagged , , , | Comments Off on Using R — Standalone Scripts & Error Messages

Using R — Working with Geospatial Data

This entry is part 9 of 21 in the series Using R

GIS, an acronym that brings joy to some and strikes fear in the heart of those not interested in buying expensive software. Luckily fight or flight can be saved for another day because you don’t need to be a GIS jock with a wad of …   read more …

Posted in Data Visualization, R | Tagged , , , , | 3 Comments

Using R — .Call(“hello”)

This entry is part 10 of 21 in the series Using R

In an introductory post on R APIs to C code, Calling C Code ‘Hello World!’, we explored the .C() function with some ‘Hello World!’ baby steps.  In this post we will make a leap forward by implementing the same functionality …   read more …

Posted in R | Tagged , | 2 Comments