dmsToDecimal | R Documentation |
This function converts geographic coordinates in degrees-minutes-seconds (DD-MM-SS) format to decimal format.
dmsToDecimal(dd, mm, ss, hemis = NULL)
dd |
Numeric. Degrees longitude or latitude. Can be a decimal value. |
mm |
Numeric. Minutes longitude or latitude. Can be a decimal value. |
ss |
Numeric. Second longitude or latitude. Can be a decimal value. |
hemis |
Character or |
Numeric.
dmsToDecimal(38, 37, 38) # latitude of St. Louis, Missouri, USA dmsToDecimal(38, 37, 38, 'N') # latitude of St. Louis, Missouri, USA dmsToDecimal(90, 11, 52.1) # longitude of St. Louis, Missouri, USA dmsToDecimal(90, 11, 52.1, 'W') # longitude of St. Louis, Missouri, USA
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.