geocacheR (version 0.1.0)

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

Examples

Run this code
# NOT RUN {
parseCoordinates("N55 55.555 W003 14.159")
parseCoordinates("N 55 55.555   E003 14.159")
parseCoordinates("N55.92592 W3.23598")
# }

Run the code above in your browser using DataLab