Learn R Programming

biogeo (version 1.0)

dmsabs: Separates a coordinate string into degrees, minutes and seconds when there are no delimiters

Description

A format string is used (fmt) to indicate which values in the input string are associated with degrees, minutes and seconds.

Usage

dmsabs(coordstr, fmt)

Arguments

coordstr
a coordinate string without delimiters
fmt
a format string where d indicates degrees, m indicates minutes and s indicates seconds, L indicates a letter (N,S,E,W)

Value

See Also

dmsparse

Examples

Run this code
dmsabs("23_45_13_S","dd_mm_ss_L")

Run the code above in your browser using DataLab