This function takes a vector of dates and rolls them up to the specified time unit, setting all smaller increments to 0 or 1 as applicable.
| 1 | 
| date | Date to be parsed | 
| by | Level at which to aggregate, such as  | 
| each | Number of  | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.