# The opposite of deg2num() example
num2deg(c(-12.51236, -17.5, 1.00139, 200.75),
lat=c(FALSE, TRUE, NA, FALSE),
dec=c(FALSE, TRUE, FALSE, FALSE),
digits=c(1, 1, 0, 0))
Run the code above in your browser using DataLab