Learn R Programming

wikilake (version 0.7.0)

dms2dd: dms2dd

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

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

Run the code above in your browser using DataLab