Learn R Programming

insol (version 1.2.2)

daydoy: Dates to day of the year

Description

Returns day of the year for given dates.

Usage

# S4 method for numeric
daydoy(x,month,day)

# S4 method for POSIXct daydoy(x)

Arguments

x

Year, four digits format, or an object of class POSIXct with no extra arguments

month

Month number.

day

Day of the month.

Value

Day of the year [1:366].

See Also

ISOdate

Examples

Run this code
# NOT RUN {
daydoy(2019,2,27:29)
daydoy(ISOdate(2019,2,27:29))


# }

Run the code above in your browser using DataLab