Category Archives: R

Testing whether a list contains an element

In the past I have always used is.null() in R to test whether a list contains a specified element. E.g., if I wanted to know whether a list, mylist contained the element x I would have used This failed me … Continue reading

Posted in Programming, R | Comments Off on Testing whether a list contains an element

Polymode for ESS

I wrote my first vignette for an R package the other day and was amazed at the ease of writing Rmarkdown. Of course, I am using emacs and was looking for a mode that would allow me to edit these … Continue reading

Posted in R | Tagged , , , , , | Comments Off on Polymode for ESS

First Attempts with the parallel Package

The last time I worked with parallel processing in R I used the package Rmpi. This ws very flexible, but took a lot of setup to handle passing jobs, code, and data between the master and the slave. I have … Continue reading

Posted in Programming, R | Tagged , | Comments Off on First Attempts with the parallel Package