Learn R Programming

timeDate (version 4041.110)

dayOfYear: Day of the year

Description

Returns the days of the year of the data in a "timeDate" object.

Usage

dayOfYear(x)

Value

vector of integers representing the number of days since the beginning of the year. For January, 1st it is one.

Arguments

x

an object of class "timeDate".

See Also

dayOfWeek

Examples

Run this code
## timeCalendar
tC <- timeCalendar(2022)
       
## the days of the year
dayOfYear(tC)

Run the code above in your browser using DataLab