powered by
Calculate geographical detectors
gd(y, x)
A numeric vector
A vector or a data.frame
# 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