[R-sig-Geo] Fw: Help
Paul Hiemstra
p.hiemstra at geo.uu.nl
Mon Sep 21 20:45:07 CEST 2009
Hi,
Loading the meuse.grid dataset is done using:
data(meuse.grid)
to generate meuse.grid from meuse use something like:
data(meuse)
coordinates(meuse) = ~x+y
meuse_grid = spsample(meuse, type = "regular", cellsize = c(40,40))
gridded(meuse_grid) = TRUE
cheers and good luck,
Paul
Danlin Yu schreef:
> Jessica:
>
> Do you mean to load the dataset meuse.grid? If so,
>
> data(meuse.grid)
>
> shall be able to do it.
>
> As for generate the meuse.grid from dataset meuse, the immediate thing
> that comes to my mind is that you might want to obtain the coordinates
> from meuse, and then try to transform the points object to a grid object.
>
> Just some quick thoughts, hope this helps.
>
> Danlin
>
> jessica243 ??:
>> ----- Original Message ----- From: jessica243 To:
>> r-sig-geo at stat.math.ethz.ch Sent: Monday, September 21, 2009 8:28 PM
>> Subject: Help
>>
>>
>> Dear everyone:
>> In my study R,I ran into a problem.I do not know how let "meuse" data
>> generate "meuse.grid" data?
>>
>> Hope this helps,
>>
>> jessica243
>>
>> [[alternative HTML version deleted]]
>>
>> _______________________________________________
>> R-sig-Geo mailing list
>> R-sig-Geo at stat.math.ethz.ch
>> https://stat.ethz.ch/mailman/listinfo/r-sig-geo
>>
>
More information about the R-sig-Geo
mailing list