arrange | R Documentation |
Re-arrange your data.frame in ascending or descending order and given one or several columns.
arrange_(df, ...)
desange_(df, ...)
df |
data.frame |
... |
formula used for arranging the data.frame |
The functions return an object of the same type as df
.
The output has the following properties:
Properties:
Columns are not modified.
Output get rows in the order specified by
....
Data frame attributes are preserved.
tmp <- arrange_(CO2,~c(conc))
head(tmp)
tmp <- arrange_(CO2,~c(Treatment,conc,uptake))
head(tmp)
tmp <- desange_(CO2,~c(Treatment,conc,uptake))
head(tmp)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.