Identify if a spatial dataset has continuous or categorical data.
spatial_data_type(x, index = 1, ...)
# S3 method for sf
spatial_data_type(x, index = 1, ...)
# S3 method for Raster
spatial_data_type(x, index = 1, max_sample = 10000, ...)
# S3 method for data.frame
spatial_data_type(x, index = 1, ...)
x |
|
---|---|
index |
|
... | not used. |
max_sample |
|
A character
indicating if the data are "continuous"
or
"categorical"
.