Description Usage Arguments Details Value
View source: R/date_evaluations.R
The purpose of this function is to provide a weight which can be used to adjust values that are aggregated at the monthly level so that the noise caused by unequal intervals (i.e varying number of days in each month) is muted.
1 | cmaw(month_date)
|
month_date |
- A date that represents the month which a value is aggregated to |
Divide the equal interval month value (1/12) by the actual share of the month in the year that The month and year for this calculation are obtained by the provided date variable. This calculation accounts for leap (366 day) years when they occur.
This function is vectorized.
A weighting value which can be used to smooth the noise caused by the Julian calendar
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.