Skip to contents

Marks the month(s) of each external organic matter (EOM; manure, slurry, compost...) application on a monthly calendar, matched to the crop that is active (or about to be sown, at harvest) in the application month, one match per rotation cycle.

Usage

expand_eom_calendar(
  rotation_calendar,
  df,
  eom_id_var = "eom.id.be.socmo",
  eom_date_var = "eom.date",
  eom_q_var = "eom.q"
)

Arguments

rotation_calendar

Monthly calendar, typically the output of expand_rotation_calendar() (optionally already passed through expand_cover_crop(), expand_irrigation_calendar(), expand_tillage_calendar()).

df

Rotation data frame, one row per planned EOM application, with the columns referenced by eom_id_var/eom_date_var/ eom_q_var plus crop.id.be.socmo.

eom_id_var

Name of the column in df holding the EOM product ID.

eom_date_var

Name of the column in df holding the application date (format "MM-DD", only the month is used).

eom_q_var

Name of the column in df holding the applied quantity.

Value

rotation_calendar with added columns eom_app_id and eom_app_q. Same row count as the input.