gict2wide: widen gict result

gict2wideR Documentation

widen gict result

Description

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.

Usage

gict2wide(x, event.only = FALSE)

Arguments

x

the return object from gict

event.only

logical; event only data, else time and event components for each alias

Value

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


renlund/datma documentation built on June 2, 2025, 5:12 a.m.