This function prepares a summarized dataframe based on provided variables and a y-variable.
The function groups the dataframe by the provided variables, summarizes the y-variable,
and counts the number of observations per group.
Usage
prep_df_summ(df, variables, y)
Value
A summarized dataframe
Arguments
df
A dataframe to be summarized
variables
A character vector specifying the columns to be grouped by
y
A character vector specifying the column to be summarized