Verify that feedstock types are eligible and moisture content remains within the limits established by AMS-III.E.

check_applicability_feedstock_characteristics_iiie(
  data,
  feedstock_type_col = "feedstock_type",
  eligible_feedstock = c("agricultural residues", "forest residues", "industrial biomass"),
  moisture_content_col = "moisture_fraction",
  maximum_moisture = 0.6,
  group_cols = NULL,
  output_col = "feedstock_applicable"
)

Arguments

data

Tibble containing feedstock metadata.

feedstock_type_col

Column storing feedstock types.

eligible_feedstock

Character vector listing eligible feedstock types.

moisture_content_col

Column storing feedstock moisture content.

maximum_moisture

Maximum allowed moisture fraction.

group_cols

Optional character vector specifying grouping columns.

output_col

Name of the logical output column.

Value

Tibble indicating whether each group satisfies feedstock criteria.

Examples

metadata <- tibble::tibble(
  plant_id = c("A", "B"),
  feedstock_type = c("agricultural residues", "municipal waste"),
  moisture_fraction = c(0.45, 0.75)
)
check_applicability_feedstock_characteristics_iiie(metadata, group_cols = "plant_id")
#> # A tibble: 2 × 2
#>   plant_id feedstock_applicable
#>   <chr>    <lgl>               
#> 1 A        TRUE                
#> 2 B        FALSE