Learn R Programming

GD (version 1.3)

gd: Calculate geographical detectors

Description

Calculate geographical detectors

Usage

gd(y, x)

Arguments

y

A numeric vector

x

A vector or a data.frame

Examples

Run this code
# NOT RUN {
gd(c(1.2,1.5,2.1,3.3,3.6, 4.3,1.2,1.5,1.9,2.8),
   c("d","d","d","c","c", "c","d","d","d","c"))
data(StraRoad)
gd(StraRoad$damage, StraRoad[,c(2:5)])

# }

Run the code above in your browser using DataLab