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
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
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
3 matches
Mail list logo