make_mix: Where we make a mess

View source: R/summarize_data.R

make_mixR Documentation

Where we make a mess

Description

the part where abridge_df is most strongly opinionated is in the mix of stats for numeric and non-numeric variables in the same column. Basically, a bunch of columns where we show stats (e.g. mean) for numeric variables, and top X value and counts for non-numeric variables. So in this function we pass the relevant variables from the summary df and it makes this conditional

Usage

make_mix(stat_var, top_key, top_count, top_count_p, top_k)

Arguments

stat_var

stat var from the summary df, such as mean, sd, q25, etc.

top_key

value of the top X

top_count

count of the top X

top_count_p

percentage of the top X

top_k

X, a number indicating the top


edalfon/efun documentation built on June 23, 2024, 4:17 a.m.