https://github.com/cran/gstat
Raw File
Tip revision: 1549b8b75c1deb686557cf1fc81402e3170801cc authored by Edzer Pebesma on 19 October 2010, 11:41:01 UTC
version 0.9-74
Tip revision: 1549b8b
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, ...)
	g = gstat(formula = object, locations = locations, data = data)
	variogram(g, ...)
}
back to top