df_movecolumn: Move data frame column

View source: R/df_ops.R

df_movecolumnR Documentation

Move data frame column

Description

Move data frame column

Usage

df_movecolumn(x, from, to = ncol(x))

Arguments

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 = ncol(x) i.e. the last column.

Author(s)

E.D. Gennatas

Examples

mtcars_hp <- df_movecolumn(mtcars, "hp")


egenn/rtemis documentation built on Dec. 17, 2024, 6:16 p.m.