我有以下格式的纬度和经度
mycoords<-c(
"S 8°45.895 E 120°27.650",
"-8.354940, 123.066789",
"S8° 46.918' E 120°27.994'",
"S01°53.201'E120°11.187'",
"8°21'29.34S 114°48'28.69E",
"8°14'1.04S 115°13'37.06E",
"S 04°12'00.5 E 122°05'27.2")
如何在R
中以以下格式将其拆分并转换为两列坐标(“ lon”,“ lat”)?
lon lat
-8.354940 123.066789
谢谢