Writes spatial tibble values into a raster.
Details
Writes tiles with coordinates from a tibble into a raster. Resolution is set to 1 and the extent will be c(0, max(x), 0, max(y)).
You can directly convert back the result from 'util_raster2tibble()' without problems. If you have altered the coordinates or otherwise played with the data, be careful while using this function.
Examples
maptib <- util_raster2tibble(random_landscape)
mapras <- util_tibble2raster(maptib)
all.equal(random_landscape, mapras)
#> [1] "Attributes: < Names: 2 string mismatches >"
#> [2] "Attributes: < Length mismatch: comparison on first 13 components >"
#> [3] "Attributes: < Component “data”: Names: 1 string mismatch >"
#> [4] "Attributes: < Component 12: Lengths (0, 1) differ (string compare on first 0) >"
#> [5] "Attributes: < Component 13: Modes: list, character >"