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.
flagleap(data, report = TRUE, matchin = FALSE)
data.
produce a brief report on the range of time used (default=TRUE).
expand the result to match the start and end dates, otherwise only dates in the data will be returned (default=FALSE).
year (4 digits).
month (2 digits).
number of days in the month (either 28, 29, 30 or 31).
The data should contain the numeric variable called ‘year’ as a 4 digit year (e.g., 1973).