char2numHHI: Conversion of Hand Hardness Index (HHI)

View source: R/char2numHHI.R

char2numHHIR 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

  • Fist 'F', 4 Fingers '4F', 1 Finger '1F', Pencil 'P', Knife 'K', or Ice 'I'

  • intermediate values allowed, e.g. 'F+', '1F-', 'F-4F'

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')
}


sarp.snowprofile documentation built on March 31, 2023, 5:17 p.m.