move vars to back

repos_back(data, ...)

Arguments

data

data frame

...

columns to move to back

Value

Reordered data frame.

Examples

## data with row names d <- data.frame(x = rnorm(5), y = rnorm(5), row.names = letters[1:5]) ## move x to back repos_back(d, x)
#> # A tibble: 5 x 2 #> y x #> <dbl> <dbl> #> 1 -0.455 0.502 #> 2 -0.0884 -0.640 #> 3 0.0397 1.80 #> 4 0.547 0.999 #> 5 -0.226 0.878