[R-sig-Geo] Creating spatial lines in a loop

2012-11-15 Thread Aikens, Ellen
Hi, I have a csv containing animal movement data which is broken into different behavioral classes (under the heading line_id). I want to plot each of the trajectories as a spatial line segment. I am trying to do this in a loop, but I am running in to problems creating a list of Line objects.

Re: [R-sig-Geo] Creating spatial lines in a loop

2012-11-15 Thread Michael Sumner
It is hard to help since your code is not reproducible, but there is a way to do this in the trip package with as.trip.SpatialLinesDataFrame, though going that route might be unattractive. Please provide the example data using something like dput(head(lid, n = 10)) rather than a straight dump like