Learn R Programming

hydrostats (version 0.2.9)

get.days: Function to determine the number of days 365 or 366 in a given year.

Description

A helper function for circular statistic functions. Determines the number of days in any given year (i.e. 365 or 366)

Usage

get.days(year)

Arguments

year

A vector of years in numeric format

Value

A vector containing the number of days in each year in the input vector

Examples

Run this code
# NOT RUN {
years<-c("1968","1975","1983","1990","2004")
get.days(years)

# }

Run the code above in your browser using DataLab