title: Converting latitude and longitude points to UTM
body: <p>I found a fairly simple example of how to do this but I cant get it to work for me. I'm pretty new to R</p>
  
  <pre><code>library(rgdal) 
  xy &lt;- cbind(c(118, 119), c(10, 50)) 
  project(xy, "+proj=utm +zone=51 ellps=WGS84") 
            [,1]    [,2] 
  [1,] -48636.65 1109577 
  [2,] 213372.05 5546301
  </code></pre>
  
  <p>But this is with example numbers. I have thousands of coordinates I have to transform and I cant figure out how to get them from my table to into this script</p>
  
  <p>My data set has 3 columns, ID, X, and Y. How can I transform them using this equation? I've been stuck on this for weeks</p>