Identify break points according to day of year, and drop any that exceed the weekinquestion variable (if you want the entire year, select December 33) Does not correct for leap years, but these will be corrected for in later steps, such as in the convert.env.data function (correcting here made it difficult to correct appropriately in other parts of the code)
1 | assign.breaks(weekinquestion, break.type)
|
weekinquestion |
The week to determine the last full break to include. Must be in YYYY-MM-DD format |
break.type |
The type of breaks to use. Options are seasonal or monthly |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.