ch.getGrpIndex: A function to get the df.grpIndex required to create legend...

ch.getGrpIndexR Documentation

A function to get the df.grpIndex required to create legend values and a legend using ch.getPlotLegendVals () and ch.addLegend.

Description

This function creates a dataframe that contains the the factorial combination of grouping columns.

Usage

ch.getGrpIndex(data, grpCols)

Arguments

data

the dataframe containing the grouped data.

grpCols

a vector of strings specifying the column names of the grouping variables.

Value

a dataframe with the factorial combination of groups in data

Examples

ch.getGrpIndex (myDataframe, c("gender", "condition"))

ccpluncw/ccpl_R_chutils documentation built on Feb. 28, 2024, 1:17 a.m.