Description Usage Arguments Value Author(s) Examples
This simple function takes an in put raster and it returns an identical one that has been dichotomized (e.g., values are 0/1).
1 | dichotomize(x, hi.val = 1, low.val = 0)
|
x |
Input raster. |
hi.val |
Value to assign to non-NA values (default = 1.0) |
lo.val |
Value to assign to NA values (default = 1.0) |
A copy of the raster (including projection) with NA values set to lo.val
and non-NA values set to hi.val
.
Rodney J. Dyer <rjdyer@vcu.edu>
1 2 3 4 5 6 7 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.