Here are some functions that I regularly use for geographic data (e.g. binning, filtering, calculation of new positions etc.).#distance in kilometers between two long/lat positions (from "fossil" package)earth.dist <- function (long1, lat1, long2, l...


Zero Inflated Models and Generalized Linear Mixed Models with R.
Zuur, Saveliev, Ieno (2012).