short {dmtools} | R Documentation |
Create object short
Description
Create object short
Usage
short(
file,
id,
name_to_find,
common_cols = NULL,
extra = NULL,
is_post = T,
is_add_cols = F
)
Arguments
file |
A character scalar. Path to the excel table. |
id |
A column name of the subject id in the dataset, without quotes. |
name_to_find |
A character scalar. For search prefixes or postfixes. |
common_cols |
A character vector. A column names in the dataset, which common for all events. |
extra |
A character scalar. For additional information. |
is_post |
A logical scalar, default is TRUE. True is postfix, otherwise, prefix. |
is_add_cols |
A logical scalar, default is FALSE. If necessary add columns. |
Value
The object short.
Examples
obj_short <- short("preg.xlsx", id, "res", c("site", "sex"))
obj_short <- short("labs.xlsx", id, "name_labs", c("site"), "human_name")
[Package dmtools version 0.2.6 Index]