Add independent variable ordering to an integer summary
Source:R/sorting_utils.R
add_indep_order_int.RdThe counterpart to add_indep_order() for summarize_int_cat_data()
output, which has one row per dependent variable and independent category
rather than one per response category. Sets .indep_order, so that
arrange_table_data() and get_indep_level_order() pick the order up the
same way they do for a categorical dependent variable (#608).
Usage
add_indep_order_int(
data,
indep,
sort_by = ".factor_order",
descend = FALSE,
call = rlang::caller_env()
)