Monthly Archives: January 2014

Fast Data Frame Modification in R

One of the frequent data structures I use in R is a data frame. Data frames are similar to matrices except they allow different types of variables in each column. I always rejoice when I can reduce the analysis at … Continue reading

Posted in analysis, data, R | Tagged , , , , | Leave a comment

Short Circuiting Logical Statements in R

Short circuiting logical statements are the way ‘lazy’ programming languages evaluate logical statements.  To identify whether or not the programming language you are using is lazy or eager, reference the chart on the wiki page: http://en.wikipedia.org/wiki/Short-circuit_evaluation The lazy (and quicker) … Continue reading

Posted in analysis, data, R | Tagged , | Leave a comment