Scale of window. Must be odd number, can represent 2 dimensions (eg., s=c(3,5) would represent a 3 x 5 window)
exact
Calculate (TRUE/FALSE) the exact TRI or an algebraic approximation.
file.name
Name of output raster (optional)
...
Additional arguments passed to writeRaster
Value
raster class object or raster written to disk
References
Riley, S.J., S.D. DeGloria and R. Elliot (1999) A terrain ruggedness index that quantifies topographic heterogeneity, Intermountain Journal of Sciences 5(1-4):23-27.