Description Usage Arguments Details Value Examples
Transform time unit to period of time
1 |
times |
Vector of calendar times (elapsed from the begining of the study) to transform to periods. Dates are also allowed but origin argument must be given then. |
period.length |
Length of each time period. |
numeric |
Logical. If |
origin |
Date at which the trial began. Ignored unless times are dates. |
Time periods are closed on the right, and 0 is included in the first one.
Period labels, when numeric
is FALSE
, come from cut
.
Returns a character (or numeric when numeric = TRUE
) vector of length values with
the corresponding time periods for each time.
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.