Togaware DATA MINING
Desktop Survival Guide
by Graham Williams
Google

Principles

Whilst not specific to R, the following principles can be a guide as to how to write good programs in R.

  1. Literals (like a threshold of 0.5) should be recorded as a symbol (in a variable);
  2. Functions should not have side-effects. That is, they should only make changes to objects whose scope is that function;



Copyright © 2004-2010 Togaware Pty Ltd
Support further development through the purchase of the PDF version of the book.
The PDF version is a formatted comprehensive draft book (with over 800 pages).
Brought to you by Togaware. This page generated: Sunday, 22 August 2010