Skip to content
Prev 9752 / 29559 Next

Changing the coordinates of a SpatialGridDataFrame

Hi,

why don't you do:

temp<- as.data.frame("your grid")
temp$lon <- round(temp$lon, 3)
temp$lat <- round(temp$lat, 3)
"your grid" <- temp
coordinates("your grid") <- ~lon+lat
gridded("your grid") <- TRUE

This can be done with less command lines, just wanted to make the 
interpretation easier.

hth

Kamran

Am 29.10.2010 01:30, schrieb David.Clifford at csiro.au:
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ksafi.vcf
Type: text/x-vcard
Size: 400 bytes
Desc: not available
URL: <https://stat.ethz.ch/pipermail/r-sig-geo/attachments/20101029/efd5d799/attachment.vcf>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5861 bytes
Desc: S/MIME Cryptographic Signature
URL: <https://stat.ethz.ch/pipermail/r-sig-geo/attachments/20101029/efd5d799/attachment.bin>