Create list of time of day break points

time_of_day(morning = c(5, 12), afternoon = c(12, 17), evening = c(17, 21))

Arguments

morning

vector of two for the hours where morning start or end in 24H

afternoon

vector of two for the hours where afternoon start or end in 24H

evening

vector of two for the hours where evening start or end in 24H

Value

list of fours times of day classifying the 24H of the day

Examples

time_of_day()
#> $morning
#> [1]  5 12
#> 
#> $afternoon
#> [1] 12 17
#> 
#> $evening
#> [1] 17 21
#> 
#> $night
#> [1] 21  5
#>