Dear list,


Dear list,

I would like to create a spatial line to be used as a boundary in KernelUD(). But my code yields an error message.

bound <- cbind(c(-40,-40,-30,-30,-20,0,20,30,50,100),c(-40,-20,-10,0,10,20,30,30,50,50))
Slo1 <- Line(bound)
Sli1 <- Lines(list(Slo1, ID="coastline"))
coastline <- SpatialLines(list(Sli1),ID="coastline")
Sli1
An object of class "Lines"...

Error in Lines(list(Slo1, ID = "coastline")) : slinelist not a list of Line objects

Would someone be able tell me why this does not work ?

Thanks a lot for your time,

Juliane





	[[alternative HTML version deleted]]

