[R-sig-Geo] unexpected behaviour of subset.SpatialPointsDataFrame()

Tom Gottfried tom.gottfried at wzw.tum.de
Wed Sep 23 18:43:39 CEST 2009


Hi Edzer, Roger and list,

is it intended that subset.SpatialPointsDataFrame() returns two additional columns with the
coordinates in the data-slot of it's return value?

data(meuse.grid)
names(meuse.grid)
coordinates(meuse.grid) <- ~x+y
names(meuse.grid)
meuse.grid <- subset(meuse.grid, meuse.grid$dist > 0.01)
names(meuse.grid)

Regards,
Tom



More information about the R-sig-Geo mailing list