flagleap-internal: Count the Number of Days in the Month

Description Usage Arguments Details Value Author(s)

Description

Counts the number of days per month given a range of dates. Used to adjust monthly count data for the at-risk time period. For internal use only.

Usage

1
flagleap(data, report=TRUE, matchin=FALSE)

Arguments

data

data.

report

produce a brief report on the range of time used (default=TRUE).

matchin

expand the result to match the start and end dates, otherwise only dates in the data will be returned (default=FALSE).

Details

The data should contain the numeric variable called ‘year’ as a 4 digit year (e.g., 1973).

Value

year

year (4 digits).

month

month (2 digits).

ndaysmonth

number of days in the month (either 28, 29, 30 or 31).

Author(s)

Adrian Barnett a.barnett<at>qut.edu.au


season documentation built on June 3, 2021, 5:06 p.m.