arrange_left | R Documentation |
arrange_left
is useful when some variables/columns want to be moved to
the left-side of a data frame. arrange_left
will silently skip
variables if they do not have a match in names(df)
.
arrange_left(df, variable)
df |
Data frame which is to be transformed. |
variable |
Variable(s) to be moved to the left side of |
Stuart K. Grange
## Not run:
# Move a single variable to the first position
data_ozone <- arrange_left(data_ozone, "date")
# Move many variables to left hand side of data frame
data_ozone <- arrange_left(data_ozone, c("date", "site", "site_name", "sensor"))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.