flagleap {season}R Documentation

Count the number of days in the month

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

flagleap(data,report=TRUE)

Arguments

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

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

Examples

data(CVD)
days<-flagleap(data=CVD)

[Package season version 0.2-3 Index]