parseCoordinates: Parse Coordinates into Numeric Format

Description Usage Arguments Value Examples

View source: R/coordinates.R

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

1

Arguments

x

A string for the coordinates to be converted

Value

A numeric vector holding the n(orth) and e(ast) coordinates

Examples

1
2
3
parseCoordinates("N55 55.555 W003 14.159")
parseCoordinates("N 55 55.555   E003 14.159")
parseCoordinates("N55.92592 W3.23598")

AlunHewinson/geocacheR documentation built on Feb. 17, 2020, 6:12 p.m.