Description Usage Arguments Value Examples
Spatial fuzzy overlay.
1 | fuzzyoverlay(y, layers, method = "fuzzyAND")
|
y |
A numeric vector of a response variable |
layers |
A data frame of spatial layers of explanatory variables. |
method |
A character of overlay methods, including "fuzzyAND" and "fuzzyOR" |
A data frame of a spatial fuzzy overlay variable.
1 2 3 4 5 6 7 | library(GD)
data <- sim[, 4:6]
data.disc <- apply(data, 2, FUN = function(x) disc(x, 4, "quantile"))
layers <- do.call(cbind, lapply(1:ncol(data), function(x)
data.frame(cut(data[, x], data.disc[[x]]$itv, include.lowest = TRUE))))
names(layers) <- names(data)
fo <- fuzzyoverlay(y = sim[,1], layers = layers, method = "fuzzyAND")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.