Learn R Programming

translateSPSS2R (version 1.0.0)

computeDate_dmy: Creates a date with the format day-month-year

Description

R Implementation of the SPSS DATE.DMY Function. computeDate_dmy is a helper function for xpssCompute.

Usage

computeDate_dmy(day=NULL,month=NULL, year= NULL)

Arguments

day
atomic numeric or integer.
month
atomic numeric or integer.
year
atomic numeric or integer.

Value

Returns a date object vector of the structure day-month-year.

Details

An character string as Date. Returns a date value corresponding to the indicated day, month, and year. The arguments must resolve to integers or numerics, with day between 1 and 31, month between 1 and 12, and year a four-digit integer value.

See Also

computeDate_mdy computeDate_moyr

Examples

Run this code
xpssCompute(x=5, fun="computeDate_dmy", month=12,year=2006)
xpssCompute(x=10, fun="computeDate_dmy", month=10,year=2010)

Run the code above in your browser using DataLab