move_to_last: Move a column to the beginning or end of a data frame

View source: R/move_column.R

move_to_lastR Documentation

Move a column to the beginning or end of a data frame

Description

Move a column to the beginning or end of a data frame

Usage

move_to_last(.data, col)

move_to_first(.data, col)

Arguments

.data

A tbl.

col

Name of column to move (unquoted)

Value

An object of the same class as .data

Examples

head(iris)
head(iris) %>% move_to_first(Species)
head(iris) %>% move_to_last(Sepal.Length)

overdodactyl/mRclwhip documentation built on June 30, 2023, 6:24 a.m.