date {dmtools} | R Documentation |
Create object date
Description
Create object date
Usage
date(file, id, get_visit, get_date = dplyr::contains, str_date = "DAT")
Arguments
file |
A character scalar. Path to the date's parameters in the excel table. |
id |
A column name of the subject id in the dataset, without quotes. |
get_visit |
A function, which select necessary visit or event e.g. dplyr::start_with, dplyr::contains. |
get_date |
A function, which select dates from necessary visit e.g. dplyr::matches, dplyr::contains, default: dplyr::contains. |
str_date |
A date's pattern in column names, default: "DAT". |
Value
The object date.
Examples
obj_date <- date("dates.xlsx", id, dplyr::contains)
obj_date <- date("dates.xlsx", id, dplyr::contains, "uneq")
[Package dmtools version 0.2.6 Index]