add_visit_count: Add a visit counter to the raw data file.

Description Usage Arguments

View source: R/cleanup.R

Description

Add a visit counter to the raw data file.

Usage

1
add_visit_count(.data, vars = c("SID", "VisitDate"), start_count = 1)

Arguments

.data

Processing data.

vars

Variable to add visit information by (ie. SID with earlier VisitDate would be 1, increasing up as VisitDates increase).

start_count

When to start the counting (ie. if for first visit, it would be 1)


lwjohnst86/PROMISE.scrub documentation built on May 21, 2019, 9:01 a.m.