rad2hms: Convert radians to hours, minutes, and seconds

Description Usage Arguments Value Author(s) See Also Examples

View source: R/rad2hms.R

Description

Angular conversion from radians to hours, minutes, and seconds

Usage

1
rad2hms(rad = 1, places = 1)

Arguments

rad

Decimal radians

places

Number of decimal places in seconds term (0:6)

Value

Fixed-format string with hours, minutes, and seconds separated by colons.

Author(s)

Andrew Harris

See Also

rad2dms, dms2rad, hms2rad

Examples

1
2
3
rad2hms(2.44)
rad2hms(hms2rad(c('10:04:5.12', '27,04,5.3', '-3:0:0')), places=3)
rad2hms(266.5 * pi/180) # from degrees to hms

astroFns documentation built on May 19, 2017, 12:54 p.m.

Search within the astroFns package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs in the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.