powered by
Move data frame column
df_movecolumn(x, colname, to = ncol(x))
data.frame
data.frame.
Character: Name of the column to move.
Integer: Which column position to move the vector to.
EDG
ir <- df_movecolumn(iris, colname = "Species", to = 1L)
Run the code above in your browser using DataLab