Spatial fuzzy overlay between variables pairwise
Value
A list
overlay
overlay results between pairs of variables
variable
pairwise interacting variable
Examples
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)),
x3 = c(rep(1,3),rep(2,2),rep(3,2)))
fo1 = fuzzyoverlay2(y ~ .,data = sim, method = 'and')
fo1
#> $overlay
#> # A tibble: 7 × 3
#> xi1 xi2 xi3
#> <int> <int> <int>
#> 1 1 1 1
#> 2 3 3 1
#> 3 4 3 2
#> 4 4 4 4
#> 5 2 4 4
#> 6 2 2 3
#> 7 2 2 3
#>
#> $variable
#> [1] "x1 ∩ x2" "x1 ∩ x3" "x2 ∩ x3"
#>
fo2 = fuzzyoverlay2(y ~ .,data = sim, method = 'or')
fo2
#> $overlay
#> # A tibble: 7 × 3
#> xi1 xi2 xi3
#> <int> <int> <int>
#> 1 3 3 3
#> 2 1 1 3
#> 3 1 1 3
#> 4 1 1 1
#> 5 2 2 2
#> 6 2 4 4
#> 7 2 4 4
#>
#> $variable
#> [1] "x1 ∩ x2" "x1 ∩ x3" "x2 ∩ x3"
#>
fo3 = fuzzyoverlay2(y ~ .,data = sim, method = 'intersection')
fo3
#> $overlay
#> # A tibble: 7 × 3
#> xi1 xi2 xi3
#> <int> <int> <int>
#> 1 1 1 1
#> 2 2 2 1
#> 3 3 2 2
#> 4 3 3 3
#> 5 4 4 4
#> 6 4 5 5
#> 7 4 5 5
#>
#> $variable
#> [1] "x1 ∩ x2" "x1 ∩ x3" "x2 ∩ x3"
#>