Hi all, For every unique "i" in 1:nrow(mydata) I have two sets of spatial "x" and "y" coordinates, one set for the start of the line (c("x", "y")) and another set for the end of the line (c("X2", "Y2")). Essentially I am looking for the simplest and fastest way of creating a series of coordinates compatible with the buffer() command in adehabitat. I have my own function for doing this based on simple trigonometry (similar to http://www.nabble.com/polygon-shapefile-from-line-edge-coordinate-list-tt15900148.html#a15900148) but it is not extremely fast and I was wondering if there was a better way.
Cheers Tyler [[alternative HTML version deleted]] _______________________________________________ R-sig-Geo mailing list R-sig-Geo@stat.math.ethz.ch https://stat.ethz.ch/mailman/listinfo/r-sig-geo