Learn R Programming

inlmisc (version 0.3.2)

GetDaysInMonth: Number of Days in a Year and Month

Description

This function determines the number of days in a year and month.

Usage

GetDaysInMonth(x)

Arguments

x

'integer'. Vector of year and month values, with a required date format of YYYYMM.

Value

Returns an 'integer' vector indicating the number of days in each year and month value specified in x.

Examples

Run this code
# NOT RUN {
GetDaysInMonth(c("199802", "199804", "200412"))

# }

Run the code above in your browser using DataLab