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
  • 47,396
  • 5
  • 31
  • 61
bublitz
  • 758
  • 2
  • 8
  • 19

0 Answers0