decDMS | R Documentation |
Convert decimal degrees to degrees, minutes, seconds
decDMS(dec, dire = NULL, dataframe = FALSE)
dec |
vector of decimal degrees |
dire |
one of "lat" (latitude) or "lon" (longitude) or NULL |
dataframe |
logical, should a dataframe be returned instead of a formatted string |
character vector of coordinates formatted as degrees, minutes and seconds
x <- c(15.53, -15.54, 0.1)
decDMS(x)
decDMS(x, "lon")
decDMS(x, "lat")
decDMS(x, "lat", dataframe = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.