Links:[1] http://spatial-analyst.net/book/node/163 [2] http://spatial-analyst.net/book/system/files/baranjahill.R