The link describes exactly what I am trying to do - pull data from ArcGIS into an R environment, modify this in some way in R and push data back to ArcGIS.
When I try to do this with a Polyline shape I get a length of shape error (same as the link). The link I posted describes how to solve this for point line only:
```
> d<-arc.open("c:\\data\\points.shp")> df<-arc.select(d)> g<-arc.shape(df)> dfxy<-data.frame(df, g$x, g$y) #filter rows> arc.write("c:\\temp\\new_points.shp", dfxy, coords=list(dfxy$g.x, dfxy$g.y), shape_info=arc.shapeinfo(g))
```
But this does not work for Polyline. I understand why the polyline is a list of vectors, that makes sense - but how do we access these co-ordinates and apply the appropriate filtering to the modified data (as above) so it can be pushed back to ArcGIS without erroring?