Closed rhijmans closed 2 years ago
Thanks for the suggestion. Added examples to both glcm_textures
and quantize_raster
. I will add some examples to the other functions too, but those are the "main" two functions.
This example fails:
library(GLCMTextures)
r <- rast(volcano, extent= ext(2667400, 2667400 + ncol(volcano)*10, 6478700, 6478700 + nrow(volcano)*10), crs = "EPSG:27200")
#Error in rast(volcano, extent = ext(2667400, 2667400 + ncol(volcano) * :
# could not find function "rast"
I think because terra is in "Imported" but not in "Depends"
you could change that, or add library(terra)
to the example.
Thanks, I added library(terra)
to the examples that need it and added examples for the other functions as well.
The help files do not have examples.
?glcm_textures
could have something like this: