-
Notifications
You must be signed in to change notification settings - Fork 991
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
setcolorder could accept a vector of column names of length lower than the number of columns #798
Comments
I think that he wants to move col V3 to the first position. It would be setcolorder(df, "V3", 1) With a third optional parameter (that must have same length of the second
|
@nigmastar that syntax makes a lot more sense to me than the OP one. Perhaps one can do
as a multiple column generalization of your proposal. |
The third argument would make it even better! I'd still like a default to
I personally reorder columns when I want specific columns to be in the first positions - for instance, I want to see them more clearly in head() or in some viewer. |
Possible duplicate of #592. |
Yes, solved too thanks to @MichaelChirico 's PR #1762 now merged in v1.10.5. |
It would be nice if
setcolorder
could accept argument of length lower than the width of the datatable, so thatcould by typed instead of
As an outsider point of view, it is also more consistent with the fact that
setnames
can be used with one name instead of the whole list of names.The text was updated successfully, but these errors were encountered: