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, colname, to = ncol(x))

Arguments

x

data.frame.

colname

Character: Name of column you want to move.

to

Integer: Which column position to move the vector to.

Value

data.frame

Author(s)

EDG

Examples

ir <- df_movecolumn(iris, colname = "Species", to = 1L)

rtemis documentation built on Oct. 20, 2026, 1:06 a.m.