makeRange: All Consecutive Number Intervals Starting at 0

Description Usage Arguments Value

Description

A vector of whole numbers is used as input, these whole numbers are the number of calendar years between dates from the addExposures function. Outputs is a data frame with two columns, "join_by", and "yrs_past_start". "join_by" is intended to be joined to the input "duration" column so that there will be rows added for each whole number less than or equal to the duration. This is how many rows are created in the addExposures function.

Usage

1
makeRange(duration)

Arguments

duration

The vector containing whole numbers that will be joined to.

Value

A data frame that can be joined to the original vector by = c("duration" = "join_by").


expstudies documentation built on June 14, 2019, 5:03 p.m.