computeXdate_wkday: Calcualtes the day of week on basis of a given date
Description
R Implementation of the SPSS XDATE.WEEK Function. computeXdate_wkday is a helper function for xpssCompute.
Usage
computeXdate_wkday(x=NULL)
Arguments
x
atomic object of class character, POSIXlt or POSIXt holding date data.
Value
Returns a character string with the day of week.
Details
computeXdate_wkday caluclates the calendar week on basis of the given date string. Result is a number between 0 and 6. 0 stands for Sunday, 6 for Saturday.