powered by
Convert numeric coordinate vectors in degrees, minutes, and seconds to decimal degrees
dms2dd(x)
numeric vector of length 3 corresponding to degrees, minutes, and seconds
dt <- rbind(c(25,12,53.66),c(-80,32,00.61)) apply(dt, 1, function(x) dms2dd(x))
Run the code above in your browser using DataLab