0

I have a coordinate in the following format:

coordinate <- "43.12+332.11"

Since I need to recover individual Latitude and Longitude parts of this coordinate, I wanted to split at the '+'.

Running the following code:

splitted <- strsplit(coordinate,'+')

however gave this result:

[[1]]
[1] "4" "3" "." "1" "2" "+" "3" "3" "2" "." "1" "1"

How can I split this string at the '+'?

Thanks for your help :-)

Sotos
  • 51,121
  • 6
  • 32
  • 66
bublitz
  • 888
  • 2
  • 11
  • 21

0 Answers0