char2numHHI {sarp.snowprofile} | R Documentation |
Conversion of Hand Hardness Index (HHI)
Description
Convert character hand hardness index (HHI) of snow layers to numeric values. For example, hand hardness Fist becomes 1, Ice becomes 6.
Usage
char2numHHI(charHHI)
Arguments
charHHI |
Character string of hand hardness level, i.e., one of
|
Value
Float value of numeric hand hardness level between 1 and 6.
Author(s)
fherla
Examples
char2numHHI('F+')
char2numHHI('F-')
char2numHHI('F-4F')
## not meaningful:
this_throws_error <- TRUE
if (!this_throws_error) {
char2numHHI('F-P')
}
[Package sarp.snowprofile version 1.3.2 Index]