Mike Clack Jones

A journey through Ruby

Month: July 2017

Calculate average ranking in R

Here is short post to describe how to calculate the average rank from a set of multiple ranks listed in different data.frames in R. This is a fairly straightforward procedure, however, it took me more time than I anticipated to make this work. To begin with, let's create a set of data.frames with and randomly […]

Testing code in RMarkdown documents with knitr

Over the last few months, Literate Programming¬† has proved to be a huge help to me in documenting my exploratory code in R. Writing Rmarkdown documents and building them with knitr not only provides me a greater opportunity to clarify my code in plain English, it also allows me to rationalise why I did something […]

Back to top