powered by
Gets decimal hour values for date/time vectors.
dtt_hour_decimal(x, ...)# S3 method for Date dtt_hour_decimal(x, ...)# S3 method for POSIXct dtt_hour_decimal(x, ...)# S3 method for hms dtt_hour_decimal(x, ...)
# S3 method for Date dtt_hour_decimal(x, ...)
# S3 method for POSIXct dtt_hour_decimal(x, ...)
# S3 method for hms dtt_hour_decimal(x, ...)
A numeric vector.
A date/time vector.
Unused.
dtt_hour_decimal(Date): Get numeric vector of decimal hour values for a Date vector
dtt_hour_decimal(Date)
dtt_hour_decimal(POSIXct): Get numeric vector of decimal hour values for a POSIXct vector
dtt_hour_decimal(POSIXct)
dtt_hour_decimal(hms): Get numeric vector of decimal hour values for a hms vector
dtt_hour_decimal(hms)
dtt_hour()
Other decimal: dtt_day_decimal(), dtt_doy_decimal(), dtt_minute_decimal(), dtt_month_decimal(), dtt_year_decimal()
dtt_day_decimal()
dtt_doy_decimal()
dtt_minute_decimal()
dtt_month_decimal()
dtt_year_decimal()
x <- as.POSIXct("1990-01-02 23:40:51") dtt_hour_decimal(x) x <- hms::as_hms("23:40:51") dtt_hour_decimal(x)
Run the code above in your browser using DataLab