arrange {m61r} | R Documentation |
Arrange your data.frames
Description
Re-arrange your data.frame in ascending or descending order and given one or several columns.
Usage
arrange_(df, ...)
desange_(df, ...)
Arguments
df |
data.frame |
... |
formula used for arranging the data.frame |
Value
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.
Examples
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)
[Package m61r version 0.0.3 Index]