| monthdays | R Documentation |
Returns number of days in each month or quarter of the observed time period.
monthdays(x)
x |
time series |
Useful for month length adjustments
Time series
Rob J Hyndman
bizdays()
par(mfrow = c(2, 1))
plot(
ldeaths,
xlab = "Year",
ylab = "pounds",
main = "Monthly deaths from lung disease (UK)"
)
ldeaths.adj <- ldeaths / monthdays(ldeaths) * 365.25 / 12
plot(
ldeaths.adj,
xlab = "Year",
ylab = "pounds",
main = "Adjusted monthly deaths from lung disease (UK)"
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.