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

Jeff Newmiller jdnewmil at dcn.davis.CA.us
Fri Jul 25 09:01:03 CEST 2014

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 how it is currently formatted.

[1] http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example

Jeff Newmiller                        The     .....       .....  Go Live...
DCN:<jdnewmil at dcn.davis.ca.us>        Basics: ##.#.       ##.#.  Live Go...
                                      Live:   OO#.. Dead: OO#..  Playing
Research Engineer (Solar/Batteries            O.O#.       #.O#.  with
/Software/Embedded Controllers)               .OO#.       .OO#.  rocks...1k
Sent from my phone. Please excuse my brevity.

On July 24, 2014 11:11:02 PM PDT, Suparna Mitra <suparna.mitra.sm at gmail.com> wrote:
>���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 data looks like:
>Latitude Longitude  22��54'57"S 47��08'50"W  22��49���38������S
>22��54'13"S 47��01'08"W  22��50'39"S 47��05'47"W  22��49'10"S
>3��5'47"S 59��59'24"W  2��55'47"S 59��58'32"W  40��49���20������N
> ���Thanks,
>	[[alternative HTML version deleted]]
>R-help at r-project.org mailing list
>PLEASE do read the posting guide
>and provide commented, minimal, self-contained, reproducible code.

More information about the R-help mailing list