coord <- c("N 43°27'30"", "N43°27'30"", "43°27'30"N",
"43° 27' 30" N", "43 ° 27 ' 30 " N",
"43°27'30"", "43°27.5'")
cat(coord, sep = "")
geoTrans(coord)
geoTrans("43 D 27.5'", degsym = "D")
geoTrans("43° 27' 30" S")Run the code above in your browser using DataLab