Learn R Programming

translateSPSS2R (version 1.0.0)

computeTime_hms: Creates a date with the format Hour-Minute-Second

Description

R Implementation of the SPSS TIME.HMS Function. computeTime_hms is a helper function for xpssCompute.

Usage

computeTime_hms(hour=NULL,minute=NULL,second=NULL)

Arguments

hour
atomic numeric or integer.
minute
atomic numeric or integer.
second
atomic numeric or integer.

Value

Returns a character string as Timedate.

See Also

computeDate_qyr computeDate_wkyr

Examples

Run this code
xpssCompute(x=4, fun="computeTime_hms", minute= 10, second=23)
xpssCompute(x=14, fun="computeTime_hms", minute= 34, second=1)

Run the code above in your browser using DataLab