fuzzyoverlay {sdsfun} | R Documentation |
spatial fuzzy overlay
Description
spatial fuzzy overlay
Usage
fuzzyoverlay(formula, data, method = "and")
Arguments
formula |
A formula of spatial fuzzy overlay. |
data |
A data.frame or tibble of discretized data. |
method |
(optional) Overlay methods. When |
Value
A numeric vector.
Note
Independent variables in the data
provided to fuzzyoverlay()
must be discretized
variables, and dependent variable are continuous variable.
Examples
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
[Package sdsfun version 0.8.0 Index]