addPurchasePeriod: Add Purchase Periods to licence records (e.g. In-Survey,...

View source: R/SurveyAnalysisLib.r

addPurchasePeriodR Documentation

Add Purchase Periods to licence records (e.g. In-Survey, Pre-Survey, Early-Season, and Late-Season)

Description

Adds the purchase period identifiers to each licence record based on the if period stratification is enabled (TRUE) and identify early/late season licences based on the period stratification date

Usage

addPurchasePeriod(
  licence_data,
  survey_dates,
  period_stratify,
  period_stratify_date = NA
)

Arguments

licence_data

Data frame of licences

survey_dates

Electronic licences data, including specifics of each licence

period_stratify

Boolean identifying if period stratification is enabled

period_stratify_date

If splitting into early/late season, this identifies date of split

Value

The licence data frame with an additional draw_type column


nick-komick/iRecAnalysisPkg documentation built on July 7, 2024, 6:29 a.m.