R/utils_df.R
df_movecolumn.Rd
Move data frame column
df_movecolumn(x, from, to = ncol(x))
data.frame.
String or Integer: Define which column holds the vector you want to move.
Integer: Define which column number you want the vector to be moved to. Default = ncol(x) i.e. the last column.
ncol(x)
data.frame
EDG
if (FALSE) { # \dontrun{ mtcars_hp <- df_movecolumn(mtcars, "hp") } # }