Skip to contents

Create a new emission risk row for a given country and disease. This function generates a new row with the specified parameters and returns it as a tibble.

Usage

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

Arguments

country_id

Country ID (iso3). If new_joker is TRUE, this will be the name of a new joker ID, otherwise it should be an ISO3 code. The ISO3 code are available in the country_ref dataset.

disease, animal_category, species

values to be inserted

emissionRiskFactors

table des facteurs d’émission (reactive ou tibble)

new_joker

logical, should be TRUE to create a new joker ID

Value

a one row tibble with the specified parameters. The dataset will contain the following columns:

  • iso3: character - The ISO3 country code or a new joker ID.

  • country: character - The full name of the country.

  • disease: character - The name of the disease.

  • animal_category: character - The category of animal ("Domestic" or "Wild").

  • species: character - The species name affected by disease.