parseCoordinates: Parse Coordinates into Numeric Format
Description
parseCoordinates takes a variety of string inputs for coordinates in the
following formats:
- N00 00.000 W000 00.000
- N00 00 00 W000 00 00
- N00.0000 W00.0000
and converts them into a numeric vector of length 2
Usage
parseCoordinates(x)
Arguments
x
A string for the coordinates to be converted
Value
A numeric vector holding the n(orth) and e(ast) coordinates