Learn R Programming

CNID (version 1.3.1)

ydays: Calculate the number of days in a specified year

Description

Calculate the number of days in a specified year.

Usage

ydays(year = as.integer(format(Sys.Date(), "%Y")))

Value

Days in a specified year.

Arguments

year

A given year, the default is current year.

Examples

Run this code
ydays(2022)

Run the code above in your browser using DataLab