[R] generating a SpatialLinesDataFrame (rgdal)

Simon Goodman s.j.goodman at leeds.ac.uk
Fri Apr 16 14:05:48 CEST 2010


Could somebody give me a pointer on how to generate a SpatialLinesDataFrame
from a dataframe, that contains lat,long coordinates as separate variables.

At the moment the data looks like this:

     lat         long
[1] 53.xxxx   1.xxxx

where as the SpatialLinesDataFrame consists of

    Coordinates
[1] (53.xxx, 1.xxx)

This is probably a trival issue, but I'm a relatively new user and searching
the documentation hasn't yielded and obvious way to do it so far.

Thanks, Simon
-- 
View this message in context: http://n4.nabble.com/generating-a-SpatialLinesDataFrame-rgdal-tp1990352p1990352.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list