move_to_last | R Documentation |
Move a column to the beginning or end of a data frame
move_to_last(.data, col)
move_to_first(.data, col)
.data |
A tbl. |
col |
Name of column to move (unquoted) |
An object of the same class as .data
head(iris)
head(iris) %>% move_to_first(Species)
head(iris) %>% move_to_last(Sepal.Length)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.