mdays {CNID}R Documentation

Calculate the number of days in a specified year and month

Description

Calculate the number of days in a specified year and month.

Usage

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

Arguments

month

A given month, such as 2.

year

A given year, the default is current year.

Value

Days in a specified year and month.

Examples

mdays(2, 2022)


[Package CNID version 1.3.1 Index]