deg2dec {spaa} | R Documentation |
Degree to decimal
Description
Convert latitude or longitude from degree to decimal format
Usage
deg2dec(h, m, s)
Arguments
h |
Degree |
m |
Minute |
s |
Second |
Details
Convert latitude or longitude from degree to decimal format.
Value
Degree of decimal format
Note
Places with eastern hemisphere should have longitude and southern hemisphere less than zero.
Author(s)
Jinlong Zhang jinlongzhang01@gmail.com
Examples
## 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)
[Package spaa version 0.2.2 Index]