prepare_db: Prepare the database

Description Usage Arguments Details Value Examples

Description

Transform the database to the appropriate format for finding pairs.

Usage

1
prepare_db(your_database, ids_column, dates_column)

Arguments

your_database

the data frame to be analyzed

ids_column

character, column name with the person identifiers

dates_column

character, column name with the visit dates

Details

The dates are ordered in an increasing order within each subject.

Value

a data frame with two columns:

"subject"

person identifiers

"dates"

dates of the clinic visits

Examples

1
2
3
4
data("simulated_data")
db_dates<-prepare_db(your_database = simulated_data,
                     ids_column = "subject",
                     dates_column = "sim_dates")

alexmarzel/svisits documentation built on May 12, 2019, 1:36 a.m.