Description Usage Arguments Value Note Examples
Convert an object to "wide" or "long" form.
1 2 3 4 5 6 7 8 9 |
x |
An object of class |
... |
Additional arguments (not implemented). |
A new data.table
is returned,
with the data in 'wide' or 'long' format.
There is one row for each time point.
For a ten
object generated from a numeric
or Surv
object,
this has columns:
t |
time. |
e |
number of events. |
n |
number at risk. |
If derived from a survfit
, coxph
or formula
object,
there are additional columns for e
and n
for each covariate group.
Most methods for ten
objects are designed for the 'long' form.
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.