Richie Cotton

Writing Great R Code

Date: This event took place live on September 25 2013

Presented by: Richie Cotton

Duration: Approximately 60 minutes.

Questions? Please send email to


Watch the webcast recording

Modern data analysis requires that you have two jobs: being a statistician and being a programmer. This is especially true with R, where pointing and clicking to analyze data is mostly not an option.

Fortunately, the jump from "writing code like a statistician" to "being a statistical programmer" isn't that far. This webcast covers a few simple skills that will get you started, including:

  • Writing stylish code.
  • Finding bad functions with the sig package.
  • Writing robust code with the assertive package.
  • Testing your code with the testthat package.
  • Documenting your code with the roxygen2 package.

About Richie Cotton

Richie is a data scientist with a mixed background in debt collection and chemical health and safety, and has worked extensively on tools to give non-technical users access to statistical models. He is the author of the R packages "assertive" for checking the state of your variables and "sig" to make sure your functions have a sensible API. He works for TDX Group and runs The Damned Liars statistics consultancy.

You may also be interested in:

Strata Conference + Hadoop World 2013