[R-sig-Geo] coordinates

Agustin Lobo alobolistas at gmail.com
Fri Jun 19 10:42:50 CEST 2009


Hi!

When using

 > coordinates(VEGPROimas20090409punts) <- c("xc","yc")

where VEGPROimas20090409punts is a dataframe and xc, yc
column variables in the dataframe,
xc and yc are deleted from the @data table of the resultinf spdf.
I mean:

 > VEGPROimas20090409punts[1,]
   site           image     xc      yc        g    h       hg    v     N  Z
1    1 SDIM0380_L1.TIF 444088 4624897 1166.573 1340 173.4269 39.5 307.6 66
       Qh   Qv1   Qv2
1 13.182 1.415 0.667

 > coordinates(VEGPROimas20090409punts) <- c("xc","yc")

 > VEGPROimas20090409punts at data[1,]
   site           image        g    h       hg    v     N  Z     Qh   Qv1   Qv2
1    1 SDIM0380_L1.TIF 1166.573 1340 173.4269 39.5 307.6 66 13.182 1.415 0.667

Is there any way
to keep xc and yc in the @data table of the resulting spdf?
I know I can put them back, but often forget. An option might be
useful.

Thanks

Agus
-------------- next part --------------
A non-text attachment was scrubbed...
Name: alobolistas.vcf
Type: text/x-vcard
Size: 251 bytes
Desc: not available
URL: <https://stat.ethz.ch/pipermail/r-sig-geo/attachments/20090619/ee991fdc/attachment.vcf>


More information about the R-sig-Geo mailing list