Skip to contents

Converts GEDCOM-style latitude strings like `"N51.5074"` or `"S33.8688"` to signed decimal degrees. Returns `NA` for `NA` or unrecognised-prefix input.

Usage

gedcomLat2Numeric(x)

Arguments

x

Character vector of GEDCOM latitude values.

Value

Numeric vector of decimal degrees (positive = N, negative = S).

Examples

gedcomLat2Numeric(c("N51.5074", "S33.8688", NA))
#> [1]  51.5074 -33.8688       NA