Function to extract the day from a timestamp of e.g. class POSIXlt, POSIXct, Date, or character. If the option is of type character it should be in the form of yyyy-mm-dd.
wp_wday(timestamp, startmonday = T)# S3 method for POSIXlt
wp_wday(timestamp, startmonday = T)
# S3 method for default
wp_wday(timestamp, startmonday = T)
Some sort of timestamp e.g. of class POSIXlt, POSIXct, Date, or character. If the option is of type character it should be in the form of yyyy-mm-dd.
whether the week should start on Monday (TRUE, the default) or it should start on Sunday (FALSE)
POSIXlt
: method for POSIXlt
default
: method for everything as.POSIXlt