## EXAMPLE 1:
## Degrees, minutes, seconds to decimal degrees:
dat.m01 <- matrix(c(41, 38, 7.836, -40, 40, 27.921),
byrow = TRUE, nrow = 2)
epi.dms(dat.m01)
## EXAMPLE 2:
## Decimal degrees to degrees, minutes, seconds:
dat.m02 <- matrix(c(41.63551, -40.67442), nrow = 2)
epi.dms(dat.m02)
Run the code above in your browser using DataLab