Monthly Archives: October 2010

head and tail for strings

October 2, 2010
By

The functions head and tail are very useful for working with lists, tables, data frames and even functions.But they do not work on strings. It is easy to define such functions> strtail + if(n+ substring(s,1-n) + else + substring(s,nchar(s)-n+1)+ }> strhead + if(n+ ...

Read more »

CouchDB and R

October 2, 2010
By
CouchDB and R

Here are some quick crib notes on getting R talking to CouchDB using Couch's ReSTful HTTP API. We'll do it in two different ways. First, we'll construct HTTP calls with RCurl, then move on to the R4CouchDB package for a higher level interface. I'll assume you've already gotten started with CouchDB...

Read more »

CouchDB and R

October 2, 2010
By
CouchDB and R

Here are some quick crib notes on getting R talking to CouchDB using Couch's ReSTful HTTP API. We'll do it in two different ways. First, we'll construct HTTP calls with RCurl, then move on to the R4CouchDB package for a higher level interface. I'll a...

Read more »

Comparison of Sunil Gavaskar and Javed Miandad’s Performance in International Cricket

October 2, 2010
By
Comparison of Sunil Gavaskar and Javed Miandad’s Performance in International Cricket

Test Cricket PerformanceOne Day Cricket Performance

Read more »

A new version of ff released (version 2.2.0)

October 2, 2010
By

A few hours ago, Jens Oehlschlägel has announced on the R-help mailing list of the release of a new version of the ff package. The ff package provides data structures that are stored on disk but behave (almost) as if they were in RAM by transparently mapping only a section (pagesize) in main memory – the effective virtual memory...

Read more »

OpenMx 1.0

October 1, 2010
By

Just realized that this SEM package for R has released version 1.0. Great...

Read more »

OpenMx 1.0

October 1, 2010
By

Just realized that this SEM package for R has released version 1.0. Great...

Read more »

Because it’s Friday: I hate pennies

October 1, 2010
By

I was brought up in Australia, where we got rid of 1¢ and 2¢ coins in my childhood. Nobody missed them, at least as I recall. I certainly didn't: they were useless, even at the age when I might by lollies (candy) for 2¢ apiece. But then again, I'd never buy one, and with the new changes if I...

Read more »

Fibonacci 1-liners

October 1, 2010
By

The other day, as an excuse to play around with custom iterators, I created some completely over-engineered code to calculate the Fibonacci sequences. But surely such a simple function can be implemented in fewer than my 15 lines? (Rick Wicklin, who writes the SAS blog The Do Loop, thinks so too.) We could use such a function to more...

Read more »

R Beginner’s Guide Book Update 10/1/2010

October 1, 2010
By
R Beginner’s Guide Book Update 10/1/2010

Update: Statistical Analysis with R is now available!I recently submitted the final drafts of all chapters of my R Beginner's Guide book, which is to be published through Packt. The official publishing timeline is set to December 2010, although the boo...

Read more »