powered by
Re-arrange your data.frame in ascending or descending order and given one or several columns.
arrange_(df, ...)desange_(df, ...)
desange_(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:
df
Columns are not modified.
Output get rows in the order specified by
....
Data frame attributes are preserved.
# NOT RUN { 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) # }
Run the code above in your browser using DataLab