ypart {DDM} | R Documentation |
determine the proportion of a year passed as of a particular date
Description
The fraction returned by this is used e.g. for intercensal estimates. Function uses 'lubridate' package to handle dates elegantly.
Usage
ypart(Year, Month, Day, reproduce.matlab = TRUE, detect.mid.year = FALSE,
detect.start.end = TRUE)
Arguments
Year |
4-digit year (string or integer) |
Month |
month digits (string or integer, 1 or 2 characters) |
Day |
Day of month digits (string or integer, 1 or 2 characters) |
reproduce.matlab |
logical. Default TRUE. Assume 365 days in a year. |
detect.mid.year |
logical. if |
detect.start.end |
logical. default |
[Package DDM version 1.0-0 Index]