Description Usage Arguments Author(s)
The colnames must not be null, and must be unique
1 | move.column(x, cols2move, at)
|
x |
a data.frame |
cols2move |
The column(s) that you want to move. Can be a vector of length >= 1 of either column names, or indices. If more than one are specified, and they are not contiguous, they will be properly extracted from the data.frame, but brought together into a contiguous block, then inserted into result before the specified column |
at |
which column do you want the new columns to be inserted BEFORE. if <= 1, then move to fron, if > ncol(x), or at=NULL, then move the columns to end. |
Mark Cowley, 2009-01-20
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.