Alternative method to calculate alpha taxonomic diversity
+Arguments
+- bin +
A SpatRaster with presence-absence data (0 or 1) for +a set of species.
+
+
+- cores +
A positive integer. If cores > 1, a 'parallel' +package cluster with that many cores is created and used.
+
+
+- filename +
Character. Save results if a name is provided.
+
+
Examples
+# \donttest{
+library(terra)
+bin1 <- terra::rast(system.file("extdata", "ref.tif",
+package = "divraster"))
+spat.alpha2(bin1)
+#> class : SpatRaster
+#> dimensions : 8, 8, 1 (nrow, ncol, nlyr)
+#> resolution : 0.125, 0.125 (x, y)
+#> extent : 0, 1, 0, 1 (xmin, xmax, ymin, ymax)
+#> coord. ref. : lon/lat WGS 84 (EPSG:4326)
+#> source(s) : memory
+#> name : Richness
+#> min value : 2
+#> max value : 8
+# }
+