View source: R/minute-decimal.R
dtt_minute_decimal | R Documentation |
Gets decimal minute values for date/time vectors.
dtt_minute_decimal(x, ...)
## S3 method for class 'Date'
dtt_minute_decimal(x, ...)
## S3 method for class 'POSIXct'
dtt_minute_decimal(x, ...)
## S3 method for class 'hms'
dtt_minute_decimal(x, ...)
x |
A date/time vector. |
... |
Unused. |
A numeric vector.
dtt_minute_decimal(Date)
: Get numeric vector of decimal minute values
for a Date vector
dtt_minute_decimal(POSIXct)
: Get numeric vector of decimal minute values
for a POSIXct vector
dtt_minute_decimal(hms)
: Get numeric vector of decimal minute values
for a hms vector
dtt_minute()
Other decimal:
dtt_day_decimal()
,
dtt_doy_decimal()
,
dtt_hour_decimal()
,
dtt_month_decimal()
,
dtt_year_decimal()
x <- as.POSIXct("1990-01-02 23:40:51")
dtt_minute_decimal(x)
x <- hms::as_hms("23:40:51")
dtt_minute_decimal(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.