gict2wide | R Documentation |
Apply data.table::dcast
to turn the result from gict into wide format
(one row per id, begin, end) with time and event component for each alias.
gict2wide(x, event.only = FALSE)
x |
the return object from |
event.only |
logical; event only data, else time and event components for each alias |
Wide form of gict. If event.only=FALSE
each alias has the
match associated with first.id == 1
turned into variables
'ev.alias' (value of 'event') and 't.alias' (value of time). If
event.only=FALSE
, each alias gets a column each with the value of
'event' associated with first.id == 1
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.