dog_aabningstid: Aabningstid

Description Usage Arguments Details Value Examples

View source: R/dog_aabningstid.R

Description

Keep only observations that are in the openings hours. Requires that the columns created by date_column.

Usage

1

Arguments

df

A data frame that has these components from a timestamp: date, weekday, and hour_min.

x

A vector containing closed days.

Details

The date_columns function has to be run before we can use this function.

Value

A subset of the rows. weekday = 7 is saturday and weekday = 1 is sunday.

Examples

1
2
dog_date_columns(tibble::tibble(time = paste(Sys.time())), time) %>%
 dog_aabningstid()

davidbaniadam/rispacs documentation built on Nov. 4, 2019, 9:43 a.m.