hard_type: Determine the type of hard coal in accordance with GOST 25543

Description Usage Arguments Value Examples

View source: R/hard_type.R

Description

In accordance with GOST 25543 (Table 6) determine the type of hard coal by volatile matter yield, [%].

Usage

1
hard_type(vdaf)

Arguments

vdaf

volatile matter yield, [%], measured in accordance with ISO 562 or ISO 5071-1 and recalculated on dry ash-free basis. Type: [double].

Value

Identifier of hard coal type according to Table 6 of GOST 25543. Type: [character].

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
hard_type(c(8.00, 9.23, 19.5, 20.1, 47.94, 47.95, 48, 50))
# [1] "08" "08" "18" "20" "46" "48" "48" "48"

# building test:
stopifnot(
  all(
    hard_type(c(8.00, 9.23, 19.5, 20.1, 47.94, 47.95, 48, 50)) ==
    c("08", "08", "18", "20", "46", "48", "48", "48")
  )
)

coal-coke/coal.state documentation built on Feb. 12, 2021, 10:02 a.m.