The answer I have found is both clear and straightforward:
require(maptools)
IloveR<-as(as(readShapeLines(fn="mylinedata.shp"), "SpatialLines"), "psp")
I was hoping someone might be able to point me in the direction of something
like this but I was fortunate enough to stumble across it in one of
Hi there,
I have a spatial road network for which I would like to construct a
"distance map" as in the distmap() function in the spatstat package.
However this function only seems to readily accept .ppp, .psp, and owin
objects. How can I import my data into a format that can be used to create
a d