powered by
Gets and sets hour values for date/time vectors.
dtt_hours(x, ...)dtt_hours(x) <- valuedtt_hour(x, ...)dtt_hour(x) <- value# S3 method for Date dtt_hour(x, ...)# S3 method for POSIXct dtt_hour(x, ...)# S3 method for hms dtt_hour(x, ...)# S3 method for POSIXct dtt_hour(x) <- value# S3 method for hms dtt_hour(x) <- valuedtt_set_hour(x, value)
dtt_hours(x) <- value
dtt_hour(x, ...)
dtt_hour(x) <- value
# S3 method for Date dtt_hour(x, ...)
# S3 method for POSIXct dtt_hour(x, ...)
# S3 method for hms dtt_hour(x, ...)
# S3 method for POSIXct dtt_hour(x) <- value
# S3 method for hms dtt_hour(x) <- value
dtt_set_hour(x, value)
An integer vector (or the modified date/time vector).
A date/time vector.
Unused.
A integer vector of the hour value(s).
dtt_hour(Date): Get integer vector of hour values for a Date vector
dtt_hour(Date)
dtt_hour(POSIXct): Get integer vector of hour values for a POSIXct vector
dtt_hour(POSIXct)
dtt_hour(hms): Get integer vector of hour values for a hms vector
dtt_hour(hms)
dtt_hour(POSIXct) <- value: Set hour values for a POSIXct vector
dtt_hour(POSIXct) <- value
dtt_hour(hms) <- value: Set hour values for a hms vector
dtt_hour(hms) <- value
dtt_hour_decimal()
Other set time: dtt_minutes(), dtt_seconds()
dtt_minutes()
dtt_seconds()
x <- as.POSIXct("1990-01-02 23:40:51") dtt_hour(x) dtt_hour(x) <- 01L x x <- hms::as_hms("23:40:51") dtt_hour(x) dtt_hour(x) <- 01L x
Run the code above in your browser using DataLab