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
I'd like to suggest an extension to fct_relevel() - an after= argument (a single level specified as a character string or default NA) which specifies a level after which the other levels are to be placed, in the specified order. This would be much more flexible than only moving levels only to the beginning of the level set.
I have a movebefore function for re-ordering data frame columns which is surprisingly useful - often the desired ordering can be obtained with minimal typing with this function. (I use 'before' rather than 'after', but 'after' might fit in better with the current behaviour of fct_relevel()...).
Cheers,
Alec
The text was updated successfully, but these errors were encountered:
Ø Seems reasonable to me - do you want to have a go at a PR?
I’m new to all this, but, sure – why not? I’ll take a look, see if I can implement a solution…
Seems reasonable to me - do you want to have a go at a PR?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com//issues/29#issuecomment-245926700, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AP7CVy5m2Lk3lAhRD51Z6Do1UT2d8CRgks5qoWshgaJpZM4Jya-w.
Hi Hadley, nice work on this package.
I'd like to suggest an extension to
fct_relevel()
- anafter=
argument (a single level specified as a character string or defaultNA
) which specifies a level after which the other levels are to be placed, in the specified order. This would be much more flexible than only moving levels only to the beginning of the level set.I have a
movebefore
function for re-ordering data frame columns which is surprisingly useful - often the desired ordering can be obtained with minimal typing with this function. (I use 'before' rather than 'after', but 'after' might fit in better with the current behaviour offct_relevel()
...).Cheers,
Alec
The text was updated successfully, but these errors were encountered: