df_movecolumn | R Documentation |
Move data frame column
df_movecolumn(x, from, to = ncol(x))
x |
data.frame |
from |
String or Integer: Define which column holds the vector you want to move |
to |
Integer: Define which column number you want the vector to be moved to.
Default = |
E.D. Gennatas
mtcars_hp <- df_movecolumn(mtcars, "hp")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.