You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, if we run the tab_spanner_delim in the tables dialogs, then it automatically splits by "". This is ok, but it might cause issues if a user naturally has an "" in their variable name, or might cause issues if you want to split by a summary when it is something like "non_count_missing".
This can be fixed very easily by changing the separator in R. We just need the separator in the pivot_wider to be the same as in tab_spanner_delim. I want to suggest we do a small fix like "XXXXX", but this is assuming that no one would ever use "XXXXX" in their column headers! Is there a suggestion of what we can put in here?
E.g., we have this at the moment (except we don't call names_sep = "_" in pivot_wider as that's the default):
If we set that separator to be a string, then we will not have this issue. E.g., if I generate a random 16 digit code, we can tell thet separator to be 8wu7sldpo9et7ydb
Should be a very small one if @Patowhiz and @rdstern agree!
Currently, if we run the
tab_spanner_delim
in the tables dialogs, then it automatically splits by "". This is ok, but it might cause issues if a user naturally has an "" in their variable name, or might cause issues if you want to split by a summary when it is something like "non_count_missing".This can be fixed very easily by changing the separator in R. We just need the separator in the
pivot_wider
to be the same as intab_spanner_delim
. I want to suggest we do a small fix like "XXXXX", but this is assuming that no one would ever use "XXXXX" in their column headers! Is there a suggestion of what we can put in here?E.g., we have this at the moment (except we don't call
names_sep = "_"
inpivot_wider
as that's the default):giving
If we set that separator to be a string, then we will not have this issue. E.g., if I generate a random 16 digit code, we can tell thet separator to be
8wu7sldpo9et7ydb
This is a very easy fix! We just need to:
names_sep = "8wu7sldpo9et7ydb"
in thepivot_wider
delim = "_"
todelim = "8wu7sldpo9et7ydb"
in thetab_spanner_delim
@Patowhiz @rdstern thoughts?
The text was updated successfully, but these errors were encountered: