Convert times to minutes.
Details
Converts times to minutes. To convert times to hours or seconds, see convertToHours or convertToSeconds.
See also
Other times:
convertHoursAMPM()
,
convertToHours()
,
convertToSeconds()
Other conversion:
convert.magic()
,
convertHoursAMPM()
,
convertToHours()
,
convertToSeconds()
,
percentileToTScore()
,
pom()
Examples
# Prepare Data
df <- data.frame(hours = c(0,1), minutes = c(15,27), seconds = c(30,13),
HHMMSS = c("00:15:30","01:27:13"), HHMM = c("00:15","01:27"))
# Convert to Minutes
convertToMinutes(hours = df$hours, minutes = df$minutes,
seconds = df$seconds)
#> [1] 15.50000 87.21667
convertToMinutes(HHMMSS = df$HHMMSS)
#> [1] 15.50000 87.21667
convertToMinutes(HHMM = df$HHMM)
#> [1] 15 87