arrange()

arrange() is a part of the dplr package.

Description

  • arrange() orders the rows of a data frame by the values of selected columns.
  • Unlike other dplyr verbs, arrange() largely ignores grouping; you need to explicitly mention grouping variables (or use .by_group = TRUE) in order to group by them, and functions of variables are evaluated once per data frame, not once per group.

Leave a Comment

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

Scroll to Top