[R-sig-Geo] How to get point pairs form variogram cloud in gstat package

vetter vetter at pik-potsdam.de
Mon Mar 14 18:27:18 CET 2011


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



More information about the R-sig-Geo mailing list