[R-sig-Geo] spdep and server
jon.skoien at jrc.ec.europa.eu
jon.skoien at jrc.ec.europa.eu
Thu Dec 1 18:14:38 CET 2011
On 01-Dec-11 17:28, Barry Rowlingson wrote:
> Its nothing to do with spdep because this is only using the sp package
> and not spdep.
>
> This is what we call a reproducible example:
>
> library(sp)
> d=data.frame(x=rep(1:4,4),y=rep(1:4,rep(4,4)),z=runif(16))
> coordinates(d)=~x+y
> d.sp=as(d,"SpatialPixels")
> d.gr=as(d.sp,"SpatialGridDataFrame")
>
> and that works for me. Cut n paste it and see if it works for you.
> Then tell us this:
>
>> packageDescription("sp")
> Package: sp
> Version: 0.9-88
> Date: 2011-09-14
> [etc]
>
Then it actually seems to be an sp and/or R version problem.
Your example works for an old version on my Windows computer (R 2.12.1,
sp_0.9-76), but not for the newest version (R 2.14.0, sp_0.9-91). It
seems the old version didnt remove the data after the fourth line
whereas the new version does.
Cheers,
Jon
--
Jon Olav Skøien
Joint Research Centre - European Commission
Institute for Environment and Sustainability (IES)
Global Environment Monitoring Unit
Via Fermi 2749, TP 440, I-21027 Ispra (VA), ITALY
jon.skoien at jrc.ec.europa.eu
Tel: +39 0332 789206
Disclaimer: Views expressed in this email are those of the individual and do not necessarily represent official views of the European Commission.
More information about the R-sig-Geo
mailing list