[R] Fwd: Converting Lat Lon data in coordinates in R

2014-07-25 Thread Suparna Mitra
Hi ​Hello , ​Can anybody please let me know how can I convert Lat/Lon data in coordinates in R. I was trying to use the rgdal package ​ and proj4 package​ . But being bit confused how to use S or N information. ​and degree min second information. Any example help will be great.​ My

Re: [R] Fwd: Converting Lat Lon data in coordinates in R

2014-07-25 Thread Jeff Newmiller
Try reading the Posting Guide, and post in plain text (your data is corrupted by the HTML). Then read [1] and use dput to provide the data as you have it in R. The solution will involve parsing out the pieces of the coordinates and converting them to decimal degrees, but we don't really know

Re: [R] Fwd: Converting Lat Lon data in coordinates in R

2014-07-25 Thread MacQueen, Don
The sp package has what you need. spTransform() will convert from lat/lon to other coordinate systems. char2dms() will convert lat/lon coordinates formatted as you have them into numeric lat/lon values. You may wish to use as.numeric( char2dms( [your data] ) ) It will take some effort to get