Learn R Programming

eq5dsuite (version 1.0.1)

.summary_table_4_4: Summary wrapper for Table 4.4

Description

This internal function creates a summary of the data frame for Table 4.4. It groups the data by the variables specified in `group_by` and calculates various summary statistics.

Usage

.summary_table_4_4(df, group_by)

Value

A data frame with the summary statistics.

Arguments

df

A data frame.

group_by

A character vector of names of variables by which to group the data.

Examples

Run this code
df <- data.frame(group = c("A", "A", "B", "B"), 
                 utility = c(0.5, 0.7, 0.8, 0.9))
.summary_table_4_4(df, group_by = "group")

Run the code above in your browser using DataLab