mergeByDate: Merge by Date

Description Usage Arguments Details Value Author(s)

Description

mergeByDate function adds new column to ds that contains VAR from nearest past DATE for SID to each row and returns ds.

Usage

1
mergeByDate(ds, ds2add)

Arguments

ds

Data.frame to be added to and returned.

ds2add

Data to pull covariates from and merge into ds. The function assumes this data.frame has 2 columns named SID and DATE for merging, with a third column with the variable to be included.

Details

Long description.

Value

Data.frame ds with an added column from ds2add.

Author(s)

Samuel Callisto calli055@umn.edu mergeByDate()


callistosp/dataTools documentation built on May 3, 2019, 4:31 p.m.