go_first: Moving column to first position

Description Usage Arguments Value Author(s) Examples

View source: R/data_manipulation.R

Description

The referred column becomes the first, keeping the order of the others

Usage

1
2
3

Arguments

D

data frame

...

formulas, like in select, but with ~

Value

data frame

go_first and go_arrange expect a column specification, similar to dplyr::select, but as a formula

Author(s)

Martin Schmettow

Examples

1
2
3
4
D <- data_frame(x = 1:3, y = 6:4, z = c(8,9,7))
go_first(D, ~y)
go_first(D, ~y:z)
go_arrange(D, ~y)

schmettow/mascutils documentation built on May 12, 2020, 11:39 a.m.