define.key: Create a key from two hierarchical factors

Description Usage Arguments Details

View source: R/define.key.R

Description

Used to create a single key from two hierarchical factors.

Usage

1
2
define.key(data, upper = "", lower = "",
  upper.levels = "Upper.Levels", lower.levels = "Lower.Levels")

Arguments

data

A data frame

upper

A character. Indicates a factor in the data frame which corresponds to the factor with the higher number of levels (typically SOC variable)

lower

A character. Indicates a factor in the data frame which corresponds to the factor with the lower number of levels (typically PT variable)

upper.levels

A character. The label to be displayed in the table for the upper terms

lower.levels

A character. The label to be displayed in the table for the lower terms

Details

Used internally by report.quali.hlev


ClinReport documentation built on Sept. 3, 2019, 5:07 p.m.