Convert numeric coordinate vectors in degrees, minutes, and seconds to decimal degrees

dms2dd(x)

Arguments

x

numeric vector of length 3 corresponding to degrees, minutes, and seconds

Examples

dt <- rbind(c(25,12,53.66),c(-80,32,00.61))
apply(dt, 1, function(x) dms2dd(x))
#> [1]  25.21491 -80.53350