Learn R Programming

oce (version 1.8-1)

lonFormat: Format a longitude

Description

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

Usage

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

Value

A character string.

Arguments

lon

longitude in \(^\circ\)N east of Greenwich.

digits

the number of significant digits to use when printing.

Author

Dan Kelley

See Also

latFormat() and latlonFormat().