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

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

Description

R Implementation of the SPSS DATE.MDY Function. computeDate_mdy is a helper function for xpssCompute.

Usage

1
computeDate_mdy(month=NULL,day=NULL, year= NULL)

Arguments

month

atomic numeric or integer.

day

atomic numeric or integer.

year

atomic numeric or integer.

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.

Value

Returns a character or character vector of the structure month-day-year

Author(s)

Bastian Wiessner

See Also

computeDate_dmy computeDate_moyr

Examples

1
2
xpssCompute(x=5, fun="computeDate_dmy", day=12,year=2006)
xpssCompute(x=10, fun="computeDate_dmy", day=10,year=2010)


Search within the translateSPSS2R package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.