Description Usage Arguments Value
View source: R/nearestWeekday.R
Functions for identifying and working with weekdays
1 2 3 | nearestWeekday(x, return.dow=FALSE)
filterWeekdays(x, return.dow=FALSE)
isWeekday(x, return.dow=FALSE)
|
x |
vector of dates, either character, Date, or POSIXct or POSIXlt. |
return.dow |
if TRUE, an attribute 'dow' on the returned value will hold the day-of-week of x, with 0 being Sunday and 6 being Saturday. |
nearestWeekday()returns a vector of same type and length as x holidng the nearest weekday. The returned value can contain duplicates, and the order is the same as x.
isWeekday()returns a logical vector the length as x.
filterWeekdays()returns a vector of same type as x, but with non-weekdays and duplicates removed.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.