daysInMonth: Number of days in a calendar month

View source: R/Dates.R

daysInMonthR Documentation

Number of days in a calendar month

Description

Return the number of days in given calendar months

Usage

daysInMonth(months = 1:12, isLeap = FALSE)

Arguments

months

integer vector, months (between 1 and 12).

isLeap

logical, if TRUE, all Februaries in vector months will have 29 days.

Value

A vector with same size as months containing the corresponding number of days.

Examples

daysInMonth()

benRenard/BFunk documentation built on July 20, 2022, 7:07 a.m.