Description Usage Arguments Details Value Author(s) See Also Examples
View source: R/xpssComputeDates.R
R Implementation of the SPSS XDATE.YEAR
Function. computeXdate_year
is a helper function for xpssCompute.
1 |
x |
atomic object of class |
computeXdate_year extracts the year on basis of the given date string.
Returns a character string with the day of week.
Bastian Wiessner
computeXdate_date
computeXdate_wkday
1 2 | xpssCompute(x="2015-02-15 20:11:20",fun="computeXdate_year")
xpssCompute(x="2022-10-20 21:22:12",fun="computeXdate_year")
|
[1] "2015"
[1] "2022"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.