Learn R Programming

oce (version 0.1-82)

lon.format: Format a longitude

Description

Format a longitude, using "W" for west longitude.

Usage

lon.format(lon, digits=max(6, getOption("digits") - 1))

Arguments

lon
longitude in $^\circ$N east of Greenwich.
digits
the number of significant digits to use when printing.

Value

  • A character string.

See Also

lat.format and latlon.format.