Skip to contents

Get a summary of groups where a daylight saving time change occurs.

Usage

dst_change_summary(dataset, Datetime.colname = Datetime)

Arguments

dataset

dataset to be summarized, must be a dataframe

Datetime.colname

name of the column that contains the Datetime data, expects a symbol

Value

a tibble with the groups where a dst change occurs. The column dst_start is a boolean that indicates whether the start of this group occurs during daylight savings.

See also

Other DST: dst_change_handler()

Examples

sample.data.environment %>% 
  dplyr::mutate(Datetime = 
  lubridate::with_tz(Datetime, "Europe/Berlin") + lubridate::dweeks(10)) %>%
  dst_change_summary()
#> # A tibble: 2 × 2
#>   Id          dst_start
#>   <chr>       <lgl>    
#> 1 Environment TRUE     
#> 2 Participant TRUE