Description Usage Arguments Value Author(s) See Also Examples
Separates (parse) coordinates into separate columns, provided that there are delimiters between the degrees, minutes and seconds e.g. 27 27'E. The can be several different formats and delimiters in the input.
1 |
dat |
A dataframe containing columns for latitude, longitude and a unique identifier (ID) |
x |
The name of the longitude column (default long) |
y |
The name of the latitude column (default lat) |
id |
A column containing a unique identifier for that row. The name of the field must be "ID". |
A dataframe containing the input columns and new columns for degrees, minutes, seconds and decimal degrees for latitude and longitude
Mark Robertson and Vernon Visser
dms2dd, getformat, parsecoords, dmsabs
1 2 3 4 |
id Place long lat
1 1 Chimoio 33 28.9 E 19 6.98 S
2 2 Grahamstown 26d31m59.98 E 33d17m60.00 S
3 3 Kenton 26*38'59"E 33*40'0.01"S
4 4 Ladybrand 27*27' E 29*12' S
5 5 Maun 23 25 E 19 58 S
6 6 Mwinilunga E 24 25 59.9880 S 11 43 59.9880
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.