Skip to contents

Marks the month(s) a tillage operation occurs on a monthly calendar, matched to the crop that is active (or about to be sown, at harvest) in the tillage month, one match per rotation cycle and season.

Usage

expand_tillage_calendar(rotation_calendar, df, till_date_var = "till.date")

Arguments

rotation_calendar

Monthly calendar, typically the output of expand_rotation_calendar().

df

Rotation data frame, one row per planned tillage event, with the column referenced by till_date_var plus crop.id.be.socmo and saison.culturale.

till_date_var

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

Value

rotation_calendar with an added tillage column (1 in a tillage month, 0 otherwise). Same row count as the input.