Hi @gmbecker ,
I’d like to propose adding a new argument (say, label_fun) to split_rows*() / split_cols*().
The idea would be to allow users to provide a function that changes/formats the levels of the split variable. For example, suppose we have a SEX variable in the dataset with levels MALE and FEMALE, but we want the split labels to appear as Male and Female instead.
With this argument, I could simply specify:
label_fun = junco::string_to_title
and that would be it. I think transformations like string_to_title() are very common when formatting labels, so this would be a convenient way to handle this without having to modify the dataset itself.
Please consider it. Thanks!
Hi @gmbecker ,
I’d like to propose adding a new argument (say,
label_fun) tosplit_rows*()/split_cols*().The idea would be to allow users to provide a function that changes/formats the levels of the split variable. For example, suppose we have a
SEXvariable in the dataset with levelsMALEandFEMALE, but we want the split labels to appear asMaleandFemaleinstead.With this argument, I could simply specify:
and that would be it. I think transformations like
string_to_title()are very common when formatting labels, so this would be a convenient way to handle this without having to modify the dataset itself.Please consider it. Thanks!