[R-sig-Geo] How to get point pairs form variogram cloud in gstat package
Edzer Pebesma
edzer.pebesma at uni-muenster.de
Mon Mar 14 18:34:12 CET 2011
make sure var1 is a variogramCloud, obtained by
variogram(..., cloud=TRUE)
On 03/14/2011 06:27 PM, vetter wrote:
> It is not working:
>
>> as.data.frame(var1)[1,]
> np dist gamma dir.hor dir.ver id
> 1 1 63834.75 0.2057185 0 0 var1
>
> and therefore:
>
>> as.data.frame(var1)$left
> NULL
>
>
>>
>> On 03/14/2011 05:47 PM, vetter wrote:
>>> I computed a variogram cloud using the gstat package.
>>>
>>> My results look like this:
>>>
>>>> var1[,1]
>> that was probably a
>>
>> var[1,]
>>
>>> dist gamma dir.hor dir.ver id left right
>>> 1 63834.75 0.2057185 0 0 var1 2 1
>>>
>>> My question is:
>>> How can I extract the values from column "left" and "right" from this
>>> object?
>>>
>> By coercion to a data.frame, and selecting:
>>
>> as.data.frame(var1)$left
>> as.data.frame(var1)$right
>>
>>> Thanks Tobias Vetter
>>>
>>> _______________________________________________
>>> R-sig-Geo mailing list
>>> R-sig-Geo at r-project.org
>>> https://stat.ethz.ch/mailman/listinfo/r-sig-geo
>
> _______________________________________________
> 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