Converting a number of seconds (such as 75) to a decimal format such as minutes.seconds
is a bit odd, but you could do it this way:
a <- 75
hour <- floor(a / 60) # floor() rounds down to the last full hour
minute <- a %% 60 * 0.01 # the %% operator gives you the remainder in base 60
new_time <- hour + minute
1.15
1
solved Convert numbers to time in R