Learn R Programming

biogeo (version 1.0)

dmsparsefmt: Parse coordinate string using a format string

Description

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

Usage

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

See Also

parsecoords

Examples

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

Run the code above in your browser using DataLab