Similar to 'group_summary' function, this one computes the rank of each value in order to quickly know what is the value in each segment that has the highest value (rank=1). 1 represents the highest number. It will exclude all factor/character variables.

group_summary_rank(data, group_var, group_func = mean)

Arguments

data

Input data source.

group_var

Variable to make the group by.

group_func

Function to be used in the group by. Default is mean.

Value

Grouped data frame, showing the rank instead of the absolute values.