Parse coordinate string using a format string

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")

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.