Learn R Programming

ClinReport (version 0.9.1.14)

define.key: Create a key from two hierarchical factors

Description

Used to create a single key from two hierarchical factors.

Usage

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