View source: R/dplyr_extensions.R
go_first | R Documentation |
The referred column becomes the first, keeping the order of the others
go_first(D, ...)
go_arrange(D, ...)
D |
data frame |
... |
formulas, like in select, but with ~ |
data frame
go_first and go_arrange expect a column specification, similar to dplyr::select, but as a formula
Martin Schmettow
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.