Description Usage Arguments Value See Also Examples
Generate a random vector of times in H:M:S format.
1 2 3 4 5 6 7 |
n |
The number elements to generate. This can be globally set within
the environment of |
x |
A vector of elements to chose from. |
prob |
A vector of probabilities to chose from. |
random |
logical. If |
name |
The name to assign to the output vector's |
Returns a random vector of time elements in H:M:S format.
1 2 3 | time_stamp(20)
time_stamp(20, random=TRUE)
pie(table(time_stamp(2000, x = seq(0, 23, by = 2), prob = probs(12))))
|
[1] 00:00:00 01:00:00 01:00:00 03:00:00 04:00:00 04:00:00 05:00:00 05:00:00
[9] 08:00:00 09:00:00 10:00:00 11:00:00 13:00:00 15:00:00 18:00:00 18:00:00
[17] 18:00:00 19:00:00 19:00:00 23:00:00
[1] 21:00:00 22:00:00 16:00:00 08:00:00 14:00:00 17:00:00 04:00:00 02:00:00
[9] 07:00:00 21:00:00 14:00:00 09:00:00 23:00:00 04:00:00 10:00:00 16:00:00
[17] 18:00:00 13:00:00 11:00:00 03:00:00
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.