Skip to contents

Get an emission risk row for a given country ID. This function retrieves the row from the emissionRiskFactors dataset and returns it as a tibble. If the row does not exist, it creates a new one.

Usage

get_emission_risk_edit_row(
  country_id,
  emissionRiskFactors,
  disease,
  animal_category,
  species,
  new_joker = FALSE
)

Arguments

country_id

an ISO3 country code (or the name of a joker)

emissionRiskFactors

table of emission factors

disease, animal_category, species

values to be inserted

new_joker

if TRUE, create a new joker ID

Value

a single tibble row with the specified parameters