Learn R Programming

rtemis (version 1.4.3)

df_movecolumn: Move data frame column

Description

Move data frame column

Usage

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

Value

data.frame

Arguments

x

data.frame.

colname

Character: Name of the column to move.

to

Integer: Which column position to move the vector to.

Author

EDG

Examples

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

Run the code above in your browser using DataLab