Learn R Programming

dang (version 0.0.16)

wday: wday

Description

Return the day of the week as an integer

Usage

wday(date = Sys.Date())

Value

A integer with the weekday component of the date

Arguments

date

A Date object, with the current date as the default

Details

This function simply wraps around the as.POSIXlt function and returns its wday field.