Skip to contents

Calculate average values by group

Usage

averageByGroup(data, column, group_by)

Arguments

data

The input data frame

column

The name of the target variable

group_by

The names of the grouping variables

Value

A data frame with average values calculated by group