fuzzyoverlay | R Documentation |
spatial fuzzy overlay
fuzzyoverlay(formula, data, method = "and")
formula |
A formula of spatial fuzzy overlay. |
data |
A data.frame or tibble of discretized data. |
method |
(optional) Overlay methods. When |
A numeric vector.
Independent variables in the data
provided to fuzzyoverlay()
must be discretized
variables, and dependent variable are continuous variable.
set.seed(42)
sim = tibble::tibble(y = stats::runif(7,0,10),
x1 = c(1,rep(2,3),rep(3,3)),
x2 = c(rep(1,2),rep(2,2),rep(3,3)))
fo1 = fuzzyoverlay(y~x1+x2,data = sim, method = 'and')
fo1
fo2 = fuzzyoverlay(y~x1+x2,data = sim, method = 'or')
fo2
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.