Description Usage Arguments Details
Used to create a single key from two hierarchical factors.
1 2 | define.key(data, upper = "", lower = "",
upper.levels = "Upper.Levels", lower.levels = "Lower.Levels")
|
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 |
Used internally by report.quali.hlev
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.