Learn R Programming

link2GI (version 0.5-3)

getSpatialClass: Checks if x is of type raster,terra,sf or sp

Description

Checks if x is a raster or sp object

Usage

getSpatialClass(obj)

Arguments

obj

R raster* or sp object

Author

Chris Reudenbach

Examples

Run this code
if (FALSE) {
# add path
getSpatialClass(x)
}

Run the code above in your browser using DataLab