dms2dd: Convert numeric coordinate vectors in degrees, minutes, and...

View source: R/geo.R

dms2ddR Documentation

Convert numeric coordinate vectors in degrees, minutes, and seconds to decimal degrees

Description

Convert numeric coordinate vectors in degrees, minutes, and seconds to decimal degrees

Usage

dms2dd(x)

Arguments

x

numeric vector of length 3 corresponding to degrees, minutes, and seconds

Examples

dt <- rbind(c(25, 12, 53.66), c(-80, 32, 00.61))
apply(dt, 1, function(x) dms2dd(x))

jsta/rjsta documentation built on June 7, 2022, 8:39 p.m.