GetDaysInMonth: Get Number of Days in a Year and Month

View source: R/GetDaysInMonth.R

GetDaysInMonthR Documentation

Get Number of Days in a Year and Month

Description

Calculate the number of days in a year and month.

Usage

GetDaysInMonth(x)

Arguments

x

'integer' vector. Year and month, with a required date format of YYYYMM.

Value

A 'integer' vector indicating the number of days for each year and month value in x.

Author(s)

J.C. Fisher, U.S. Geological Survey, Idaho Water Science Center

Examples

GetDaysInMonth(c("199802", "199804", "200412"))


USGS-R/inlmisc documentation built on Sept. 17, 2022, 2:38 a.m.