Skip to contents

Create a function that takes a data set containing at least two of the following variables, period_start_variable, period_end_variable, period_days_variable, and returning a data set with all of these three variables and other variables describing the middle of the period with either or both of period_mid_time_variable and period_mid_date_variable. These two period middle descriptors will only differ (by exactly 12 hours) for periods with odd numbers of days.

Usage

PeriodDescriber(mid_types = c("time", "date"))

Arguments

mid_types

Compute mid-times and/or mid-dates?

Value

A function like period_describer_default that adds variables to describe the time period represented by each record.