decimaldegrees: Converter for geographical coordinates from the ECA&D format...

Description Usage Arguments Value Examples

View source: R/decimaldegrees.R

Description

This function takes sexagesimal degrees in the ECA&D format and converts them into decimal degrees. Initial idea was taken from: https://modtools.wordpress.com/2013/09/25/dms2dec/

Usage

1
decimaldegrees(dms, sep = ":")

Arguments

dms

ONE ELEMENT from the LAT or LON field in ECA&D listings

sep

the separator between elements, in ECA&D ":"

Value

geographical coordinates (latitude or longitude) in decimal degrees

Examples

1
2
3
4
5
dms<-'+48:03:00'
dec<-decimaldegrees(dms)

dms<-'-015:03:00'
dec<-decimaldegrees(dms)

INQC documentation built on May 24, 2021, 5:07 p.m.