dot-rename_last_group_as_variable: Rename Last Group to Variable

.rename_last_group_as_variableR Documentation

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)

Arguments

df_result

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

Value

an ARD data frame of class 'card'

Examples

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

cards:::.rename_last_group_as_variable(data)

cards documentation built on Oct. 4, 2024, 1:09 a.m.