Learn R Programming

dttr2 (version 0.5.2)

dtt_day_decimal: Get Decimal Day Values

Description

Gets decimal day values for date/time vectors.

Usage

dtt_day_decimal(x, ...)

# S3 method for Date dtt_day_decimal(x, ...)

# S3 method for POSIXct dtt_day_decimal(x, ...)

Value

A numeric vector.

Arguments

x

A date/time vector.

...

Unused.

Methods (by class)

  • dtt_day_decimal(Date): Get numeric vector of decimal year values for a Date vector

  • dtt_day_decimal(POSIXct): Get numeric vector of decimal year values for a POSIXct vector

See Also

dtt_day()

Other decimal: dtt_doy_decimal(), dtt_hour_decimal(), dtt_minute_decimal(), dtt_month_decimal(), dtt_year_decimal()

Examples

Run this code
x <- as.POSIXct("1990-01-03 10:00:01")
dtt_day_decimal(x)

Run the code above in your browser using DataLab