# NE
parse_hemisphere("74.123E", "45N54.2356")
if (FALSE) {
# NW
parse_hemisphere(-120, 40.4183318)
# SW
parse_hemisphere(-120, -40.4183318)
# SE
parse_hemisphere(120, -40.4183318)
# bad inputs, get one of the two strings
parse_hemisphere(-181, -40.4183318)
parse_hemisphere(-120, -192.4183318)
}
Run the code above in your browser using DataLab