R/utils_df.R
df_movecolumn.Rd
Move data frame column
df_movecolumn(x, colname, to = ncol(x))
data.frame.
Character: Name of column you want to move.
Integer: Which column position to move the vector to. Default = ncol(x) i.e. the last column.
ncol(x)
data.frame
EDG
if (FALSE) { # \dontrun{ ir <- df_movecolumn(iris, colname = "Species", to = 1L) } # }