refineTable {ahw}R Documentation

Expands data.table

Description

Refines dataFr so that each individual at risk get a row for each of the provided event times

Usage

refineTable(dataFr, atRiskState, eventState)

Arguments

dataFr

data.frame or data.table on long format

atRiskState

At risk state(s)

eventState

Observed event times

Value

data.table

Author(s)

Pål Christie Ryalen <p.c.ryalen@medisin.uio.no>


[Package ahw version 0.1.0 Index]