Description Usage Arguments Value
Define a funtion "segment0" that separate different shifts
1 | segment_0(speed, threshold, time_diff)
|
speed |
the speed is a vector of speeds to be segmented. |
threshold |
the threshold that is needed to segment the speeds. (the unit of threshold is an hour) |
time_diff |
the difference of time for each data point. |
shift number, which is a vector which indicates the separated shift numbers, with 0 indicated time of taking a rest.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.