Learn R Programming

dmtools (version 0.2.4)

short: Create object short

Description

Create object short

Usage

short(file, id, name_to_find, common_cols = c(), extra = NA, is_post = T)

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.

Value

The object short.

Examples

Run this code
# NOT RUN {
obj_short <- short("preg.xlsx", id,"res", c("site", "sex"))
obj_short <- short("labs.xlsx", id,"name_labs", c("site"), "human_name")

# }

Run the code above in your browser using DataLab