Learn R Programming

phenex (version 1.4-5)

yearlength: Number of Days

Description

Returns the number of days of the given year.

Usage

yearlength(year)

Arguments

year
A vector of years as integer values.

Value

The number of days of the year in the date

Examples

Run this code
	year <- c(1995, 2000, 2005, 2010)
	days <- yearlength(year)
	days

Run the code above in your browser using DataLab