hms2rad | R Documentation |
Angular conversion from hours, minutes, and seconds to radians.
hms2rad(h = '12h 3m 45.6s')
h |
String hours, minutes, and seconds |
Function reads a string (the input is a string to allow conversion of angles between -1 and zero hours) with hours, minutes, and seconds separated by any of characters d, m, s, a colon, or a comma. Spaces are not valid separators, as they are removed as part of input parsing. Zeros are the default if values for minutes or seconds are missing from the string. A minus sign before the hours indicates negative hours. Decimal values are allowed in any position.
Angle in radians.
Andrew Harris
dms2rad
, rad2hms
, rad2dms
hms2rad('10, 22, 14') hms2rad('-0:30') hms2rad('0h30')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.