Brett Klamer

R Style Guide

For a quick reference on syntax, refer to

For additional reading, check out

There is also an R package, formatR by Yihui Xie, which can automatically format code. This may be especially useful if working with someone elses code or modifying old code.

Published: 2014-01-01
Last Updated: 2014-10-11