Description Usage Arguments Details Value
Moves a data.frame column to a new position
1 |
df |
An R data.frame |
from |
an integer indicating the current position of the column to move. |
to |
an integer indicating the target position of the column to move. |
This function does not work with data tables. The default position for 'from' is the last column of the data.frame.
A data.frame identical to the input data.frame in terms of contents but with reordered columns.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.