go_first: Moving column to first position

View source: R/dplyr_extensions.R

go_firstR Documentation

Moving column to first position

Description

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

Usage

go_first(D, ...)

go_arrange(D, ...)

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

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/bayr documentation built on March 23, 2024, 7:49 p.m.