View source: R/mergelongtreatment.R
mergelongtreatment | R Documentation |
Merge long format treatment and outcome data from multiple sources with possibly hierarchical matching IDs using data.table
mergelongtreatment(
x,
group_varnames,
time_varname = "Date",
start_date,
end_date,
interval_days = 14,
verbose = TRUE,
trace = 1
)
x |
Named list: Long form datasets to merge. Will be converted to |
group_varnames |
Vector, character: Variable names to merge by, in order. If first is present on a given pair of datasets, merge on that, otherwise try the next in line. |
time_varname |
Character: Name of column that should be present in all datasets containing time information. Default = "Date" |
start_date |
Date or characcter: Start date for final dataset in format "YYYY-MM-DD" |
end_date |
Date or character: End dat for final dataset in format "YYYY-MM-DD" |
interval_days |
Integer: Starting with |
verbose |
Logical: If TRUE, print messages to console. Default = TRUE |
trace |
Integer: If > 0 print additional info to console. Default = 1 |
Merged data.table
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.