https://github.com/cran/gstat
Tip revision: 36f1c257fa33bdf233c6a62e941c1c62288e4f5c authored by Edzer Pebesma on 08 January 2015, 14:02:52 UTC
version 1.0-20
version 1.0-20
Tip revision: 36f1c25
variogram.formula.R
# $Id: variogram.formula.q,v 1.8 2006-02-10 19:01:07 edzer Exp $
"variogram.formula" <-
function (object, locations = coordinates(data), data, ...)
{
# gstat.formula takes care of the case where locations contains
# both data and coordinates --- see there.
## ret = gstat.formula(object, locations, data)
## variogram(object = ret$y, locations = ret$locations, X = ret$X, ...)
if ((missing(locations) && is(data, "ST")) || (is(locations, "ST")))
variogramST(formula = object, locations = locations, data = data, ...)
else {
g = gstat(formula = object, locations = locations, data = data)
variogram(g, ...)
}
}