wideData: Extract a wide form of the adverse event, medical history,...

Description Usage Arguments

View source: R/nonxgboost.R

Description

Extract a wide form of the adverse event, medical history, conmeds, or other dataset

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
wideData(
  data,
  dm,
  subject = "subject",
  term = "PT",
  arm = "arm",
  arm.col = FALSE,
  subject.col = TRUE,
  drop = 0
)

Arguments

data

The adverse event dataset

dm

The demography dataset

subject

The unique subject identifier. Defaults to id="usubjid"

term

The name of the column identifying AE terms. Defaults to term="aeterm"

arm

The name of the treatment group column. Defaults to trt="arm"

arm.col

Whether to include the treatment arm as a column in the output. Defaults to arm.col=FALSE

subject.col

Whether to include the subject identifier as a column in the output (the rownames get the subject identifiers). Defaults to id.col=TRUE

drop

Drop columns in which fewer than drop of cases are 1. Defaults to drop=0


harrysouthworth/mhdm documentation built on Feb. 4, 2022, 12:25 a.m.