I really love this post because there's no way I could have written it!  There's no way I could have written this R code.  And the scala _ operator to make partial functions is a useful pattern that I never would have thought about!  Both concepts are interesting to me and broadens the horizons of this blog.  I think it's ready to go after some editing and added links.