computeXdate_jday: Calculates the date of year on basis of a given date

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/xpssComputeDates.R

Description

R Implementation of the SPSS XDATE.JDAY Function. computeXdate_jday is a helper function for xpssCompute.

Usage

1

Arguments

x

atomic object of class character, POSIXlt or POSIXt holding date data.

Details

computeXdate_jday caluclates the date of year out of the date string, the other date and time componentes will be omitted.

Value

Returns a character string with the date of year.

Author(s)

Bastian Wiessner

See Also

computeXdate_date computeDate_wkyr

Examples

1
2
xpssCompute(x="2015-02-15 20:22:20", fun="computeXdate_jday")
xpssCompute(x="2022-02-20 21:22:12", fun="computeXdate_jday")

translateSPSS2R documentation built on May 30, 2017, 4:31 a.m.