is_raster_type | R Documentation |
raster
or terra
packageTest if an object is from raster
or terra
package
is_raster_type(x, klass = c("BasicRaster", "SpatRaster"))
x |
object to test |
klass |
character a vector of allowed class types. Use this to narrow the test, say for a brick by setting klasses to 'RasterBrick' |
logical, TRUE if the object inherits from the specified class
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.