char2dd: Clean Coordiantes Formats

Description Usage Arguments Details Value Author(s) Examples

Description

The function converts coordinates stored as degree, minute, decimal second values (dms) to decimal degrees (dd).

Usage

1
char2dd(x, chd = "°", chm = "\"", chs = "\"\"", NS = TRUE)

Arguments

x

character, vector of coordinates

chd

character, degree character terminator

chm

character, minute character terminator

chs

character, second character terminator

NS

logical, TRUE for north/south, FALSE for east/west decimal degrees

Details

Argument x may be composed of mixed dms and dd values. Quotation marks need to be escaped (" "\""). The function replaces the decimals as comma with dot and trims blanks from both ends.

Value

numeric

Author(s)

Roland Kaiser

Examples

1
# Nothing here yet

kardinal-eros/vegit documentation built on Feb. 16, 2020, 9:20 p.m.