Dplyr:: Arrange() in R

Dplyr() is the data manipulation package in R and is described in detail here.

Problem:

Use of Dplyr Arrange() in R

Solution:

Arrange() allows changing the ordering of the rows. It takes a data frame and a set of column names (or more complicated expressions) to order by the results

Example:

For this example, we can use the data sets related to flights that departed from NYC in 2013.
We have installed the dataset in our previous post and you can get the code here.

Flights

Arrange() Code:

Flight_hour
Flight_Dist
Flight_Hour_Dist

Thank You!

0

Leave a Reply

Your email address will not be published. Required fields are marked *