df_movecolumn: Move data frame column

View source: R/utils_df.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.

Value

data.frame

Author(s)

EDG

Examples

## Not run: 
mtcars_hp <- df_movecolumn(mtcars, "hp")

## End(Not run)

egenn/rtemis documentation built on June 14, 2025, 11:54 p.m.