Calculate the proportion of categories for a variable within a nested dataframe and convert each categories to a new variable adding to the dataframe

prop_factor_nested(df, ...)

Arguments

df

A nested dataframe

var

Name of column to calculate