Last chance! 50% off unlimited learning
Sale ends in
Format geographical positions to degrees, minutes, and hemispheres
formatPosition(
latlon,
isLat = TRUE,
type = c("list", "string", "expression"),
showHemi = TRUE
)
a vector of latitudes or longitudes
a boolean that indicates whether the quantity is latitude or longitude
a string indicating the type of return value (see below)
a boolean that indicates whether to indicate the hemisphere
A list containing degrees
, minutes
, seconds
,
and hemispheres
, or a vector of strings or (broken) a vector of
expressions.
Other functions related to maps:
lonlat2map()
,
lonlat2utm()
,
map2lonlat()
,
mapArrows()
,
mapAxis()
,
mapContour()
,
mapCoordinateSystem()
,
mapDirectionField()
,
mapGrid()
,
mapImage()
,
mapLines()
,
mapLocator()
,
mapLongitudeLatitudeXY()
,
mapPlot()
,
mapPoints()
,
mapPolygon()
,
mapScalebar()
,
mapText()
,
mapTissot()
,
oceCRS()
,
shiftLongitude()
,
usrLonLat()
,
utm2lonlat()
# NOT RUN {
library(oce)
formatPosition(10+1:10/60+2.8/3600)
formatPosition(10+1:10/60+2.8/3600, type="string")
# }
Run the code above in your browser using DataLab