deg2num                 package:gmt                 R Documentation

_C_o_n_v_e_r_t _D_e_g_r_e_e_s _t_o _N_u_m_e_r_i_c

_D_e_s_c_r_i_p_t_i_o_n:

     Convert deg:min:sec string to decimal number.

_U_s_a_g_e:

     deg2num(x)

_A_r_g_u_m_e_n_t_s:

       x: string or vector of strings.

_D_e_t_a_i_l_s:

     Degrees, minutes and seconds are separated by colons, and each can
     have a decimal point as well. First character must be a minus sign
     or number, and last character must be W, E, S, N, or number.

_V_a_l_u_e:

     Numeric representation of the degree string(s).

_N_o_t_e:

     The string format is adopted from Appendix B.1.1 in the GMT
     manual.

_A_u_t_h_o_r(_s):

     Arni Magnusson arnima@u.washington.edu.

_S_e_e _A_l_s_o:

     'as.numeric'.

     'gmt-package' gives an overview of the package.

_E_x_a_m_p_l_e_s:

     deg2num(c("12:30:44.5W", "17.5S", "1:00:05", "200:45E"))

