Description Usage Arguments Details Value Note Author(s) References See Also Examples
It can be tedious to reorder the columns in a data.frame. This function lets you move specific columns relative to some other named column.
1 |
x |
data.frame |
who |
a character vector of column names to move, or a logical vector of length names(x), or a vector of indices |
after |
the column after which to put |
If after
is NA
, the named columns are moved to the front (before the first column).
If after
has length zero, or is a number less than zero or an integer greater than the number of remaining
columns, or is NULL, who
is moved to the end. If an integer less than or equal to the number
of remaining columns, who
is placed after the corresponding column.
data.frame: a variant of x
As of 5.56, duplicate column names are resolved by make.unique
without warning.
Tim Bergsma
http://metrumrg.googlecode.com
match
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.