Learn R Programming

expstudies (version 0.0.5)

makeDays: Create a DataFrame with all dates in the exposure period for each key

Description

Create a DataFrame with all dates in the exposure period for each key

Usage

makeDays(record_key, record_start, record_days, final_size)

Arguments

record_key

Vector of keys from the input record

record_start

Vector of start dates from the input record

record_days

Vector containing the number of days in the interval for a row in a record

final_size

Sum of days in all intervals, used to initialize the DataFrame that is returned.