weekdays: Obtain the weekdays of interest

View source: R/utils.R

weekdaysR Documentation

Obtain the weekdays of interest

Description

Obtain the weekdays of interest

Usage

weekdays(which_days = NULL)

Arguments

which_days

numeric() or character(), default NULL. If numeric, must be an index between 1:7. If character, must be one of c("Mon", "Tues", "Wed", "Thurs", "Fri", "Sat", "Sun"). If NULL, will return all week days.

Value

character() with selected weekdays

Examples


weekdays()
weekdays(1:3)
weekdays(c("Mon", "Tues", "Wed"))

dzhang32/autorecipes documentation built on April 15, 2022, 3:29 a.m.