R/deg2dec.R

deg2dec <-
function(h,m,s){
    if(h < 0){
        m = - m
        s = -s
    }
    res = h + m/60 + s/3600
    return(res)
}

Try the spaa package in your browser

Any scripts or data that you put into this service are public.

spaa documentation built on May 2, 2019, 9:44 a.m.