Coerces raster values to integers
util_as_integer(x) # S3 method for RasterLayer util_as_integer(x)
x | raster |
---|
RasterLayer
Coerces raster values to integers, which is sometimes needed if you want further methods that rely on integer values.
# Mode 1 util_as_integer(fractal_landscape)#> class : RasterLayer #> dimensions : 150, 150, 22500 (nrow, ncol, ncell) #> resolution : 1, 1 (x, y) #> extent : 0, 150, 0, 150 (xmin, xmax, ymin, ymax) #> crs : NA #> source : memory #> names : layer #> values : 1, 22500 (min, max) #>