Skip to contents

Summarise time periods in an IIDDA dataset.

Usage

summarise_periods(data, cutoff = 50)

summarise_periods_vec(period_start_date, period_end_date, cutoff = 50)

Arguments

data

Data frame hopefully containing both `period_start_date` and `period_end_date`. If either are missing an error results.

cutoff

Number of characters, above which the output string takes the form `max-date to min-date (with gaps)`.

period_start_date

Column with the start dates of the periods.

period_end_date

Column with the end dates of the periods.

Value

A string summarizing the data in the columns

Functions

  • summarise_periods_vec(): For use inside `mutate` and `summarise` functions.