addCol: Previous value of a longitudinal variable

Description Usage Arguments Value

View source: R/code.R

Description

add the variable of previous value of the variable state to the data frame. The data frame should include studyID_c ( id variable), round (screening round), result (current state or screening result).

Usage

1

Arguments

df

A data frame that includes studyID_c ( id variable), round (screening round), result (current state or screening result).

Value

A data frame which also includes a variable for previous state or result.


kgolmakani/cRisk documentation built on May 4, 2019, 6:30 a.m.