title: Convert Begin and End Coordinates into Spatial Lines in R
body: <p>I have a set of begin and end coordinates that look like this:</p>
  
  <pre><code>begin.coord &lt;- data.frame(lon=c(-85.76,-85.46,-85.89), lat=c(38.34,38.76,38.31))
  end.coord &lt;- data.frame(lon=c(-85.72,-85.42,-85.85), lat=c(38.38,38.76,38.32))
  </code></pre>
  
  <p>I am trying to create a set of 3 line segments by connecting each begin point to its corresponding end point. I would like the end product to be a <code>SpatialLines</code> object so that I can use the it with <code>over</code> function in the <code>sp</code> package.</p>