Skip to content
Prev 8328 / 29559 Next

SpatialPointDataFrame to SpatialLinesDataFrame

Thanks!

But by doing this

ltraj <- Lines(sapply(split(traj_subam[c("LONGITUDE","LATITUDE")],
traj_subam$TARGET_ID), Line))

we get

Slot "ID":
[1] NA


We are not holding the [Target_ID] column as ID ?

2010/5/25 Edzer Pebesma <edzer.pebesma at uni-muenster.de>: