deg2dec | R Documentation |
Convert latitude or longitude from degree to decimal format
deg2dec(h, m, s)
h |
Degree |
m |
Minute |
s |
Second |
Convert latitude or longitude from degree to decimal format.
Degree of decimal format
Places with eastern hemisphere should have longitude and southern hemisphere less than zero.
Jinlong Zhang jinlongzhang01@gmail.com
## deg2dec() example
##Paris
L1 = deg2dec(-2,20,14)
phi1 = deg2dec(48, 50, 11)
##Washington DC
L2 = deg2dec(77,03,56)
phi2 = deg2dec(38,55,17)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.