Tests if a date is a weekday or not.
isWeekday(x, wday = 1:5) isWeekend(x, wday = 1:5)
an object of class
Specify which days should be considered as weekdays. By default from Mondays to Fridays.
the functions return logical vectors indicating if a date is a weekday, or a weekend day.
## Dates in April, currentYear: currentYear = getRmetricsOptions("currentYear") tS = timeSequence( from = paste(currentYear, "-03-01", sep = ""), to = paste(currentYear, "-04-30", sep = "")) tS ## Subset of Weekends: isWeekend(tS) tS[isWeekend(tS)]
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.