[R-sig-Geo] back to variogram

Edzer Pebesma edzer.pebesma at uni-muenster.de
Sun Dec 30 11:09:59 CET 2012



On 12/30/2012 12:02 AM, Hodgess, Erin wrote:
> Hello yet again:
> 
> I have a little data set that I want to get a variogram for.  However, I keep getting an error.
> 
>> str(z1.df)
> Formal class 'SpatialPointsDataFrame' [package "sp"] with 5 slots
>   ..@ data       :'data.frame':    5 obs. of  1 variable:
>   .. ..$ x: num [1:5] 1.4228 0.0275 -0.3738 0.2812 0.2328
>   ..@ coords.nrs : int [1:2] 2 3
>   ..@ coords     : num [1:5, 1:2] 146.9 133.8 -85.8 -99.9 -91.1 ...
>   .. ..- attr(*, "dimnames")=List of 2
>   .. .. ..$ : NULL
>   .. .. ..$ : chr [1:2] "lon" "lat"
>   ..@ bbox       : num [1:2, 1:2] -99.9 -31.3 146.9 38.3
>   .. ..- attr(*, "dimnames")=List of 2
>   .. .. ..$ : chr [1:2] "lon" "lat"
>   .. .. ..$ : chr [1:2] "min" "max"
>   ..@ proj4string:Formal class 'CRS' [package "sp"] with 1 slots
>   .. .. ..@ projargs: chr NA
>> variogram(z1.df)
> Error in variogram.default(z1.df) :
>   argument object and locations should be lists
>>
> 
> Does this make any sense, please?

No. You can find this out by reading ?variogram and vignette("gstat") --
please report back if anything is not clear when working from there.

> 
> Thanks,
> Erin
> 
> 
> 	[[alternative HTML version deleted]]
> 
> _______________________________________________
> R-sig-Geo mailing list
> R-sig-Geo at r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-geo
> 

-- 
Edzer Pebesma
Institute for Geoinformatics (ifgi), University of Münster
Weseler Straße 253, 48151 Münster, Germany. Phone: +49 251
8333081, Fax: +49 251 8339763  http://ifgi.uni-muenster.de
http://www.52north.org/geostatistics      e.pebesma at wwu.de



More information about the R-sig-Geo mailing list