Learn R Programming

cards (version 0.3.0)

.rename_last_group_as_variable: Rename Last Group to Variable

Description

In the ard_hierarchical*() functions, the last grouping variable is renamed to variable and variable_level before being returned.

Usage

.rename_last_group_as_variable(df_result)

Value

an ARD data frame of class 'card'

Arguments

df_result

(data.frame)
an ARD data frame of class 'card'

Examples

Run this code
data <- data.frame(x = 1, y = 2, group1 = 3, group2 = 4)

cards:::.rename_last_group_as_variable(data)

Run the code above in your browser using DataLab