compare_zone {paar} | R Documentation |
Compare spatial zone means
Description
Compare spatial zone means
Usage
compare_zone(
data,
variable,
zonesCol,
alpha = 0.05,
join = sf::st_nearest_feature,
returnLSD = FALSE,
grid_dim
)
Arguments
data |
|
variable |
|
zonesCol |
|
alpha |
|
join |
function to use for st_join if variable is |
returnLSD |
|
grid_dim |
|
Value
list
with differences and descriptive_stat
References
Paccioretti, P., Córdoba, M., & Balzarini, M. (2020). FastMapping: Software to create field maps and identify management zones in precision agriculture. Computers and Electronics in Agriculture, 175, 105556 https://doi.org/10.1016/j.compag.2020.105556.
Examples
library(sf)
data(wheat, package = "paar")
##Convert to an sf object
wheat <- sf::st_as_sf(wheat,
coords = c("x", "y"),
crs = 32720)
clusters <- paar::kmspc(
wheat,
variables = c('CE30', 'CE90', 'Elev', 'Pe', 'Tg'),
number_cluster = 3:4
)
data_clusters <- cbind(wheat, clusters$cluster)
compare_zone(data_clusters,
"Elev",
"Cluster_3")
[Package paar version 1.0.1 Index]