dmsparsefmt: Parse coordinate string using a format string

Description Usage Arguments Value Author(s) See Also Examples

Description

Parse coordinate string into degrees, minutes and seconds using a format string

Usage

1
dmsparsefmt(x, fmt)

Arguments

x

a character vector of coordinates

fmt

a format string specifying the format to be used e.g. 'dd.mm L'

Value

a dataframe with the degrees, minutes and seconds of the coordinate in separate columns

Author(s)

Mark Robertson

See Also

parsecoords

Examples

1
2
 x<-c('44.25 E','21.20 E','14.03 E')
 dmsparsefmt(x,fmt="dd.mm L")

biogeo documentation built on May 1, 2019, 8:05 p.m.