Skip to content
Prev 3559 / 29559 Next

Converting spatialPointsDataFrame into ppp

From the help of as.ppp {maptools}


data(meuse)

 > class(meuse)
[1] "SpatialPointsDataFrame"
attr(,"package")
[1] "sp"


coordinates(meuse) = ~x+y
zn1 <- as(meuse["zinc"], "ppp")
zn1

And then try this:

Kest(zn1)


Regards,

Marcelino
At 10:44 08/05/2008, Agustin Lobo wrote:
________________________________

Marcelino de la Cruz Rot

Departamento de  Biolog?a Vegetal
E.U.T.I. Agr?cola
Universidad Polit?cnica de Madrid
28040-Madrid
Tel.: 91 336 54 35
Fax: 91 336 56 56
marcelino.delacruz at upm.es