Description Usage Arguments Details Value Examples
This function takes time in an ITime object and creates a factor representing time-length bins. For example, 09:36:56 will be given a factor 09:30:00 if 10-minute length bins are desired.
1 | minutebins(x, minutes)
|
x |
a one column of a data.table containing a time in the ITime, "09:30:00" represents hours, minutes, and seconds. |
minutes |
length of the desired time bins. Must divide hours in to equal bins |
This function is intended to be vectorized over a data.table object. See examples below.
An ITime object.
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.