arrange.ir {ir}R Documentation

Arrange rows in ir objects by column values

Description

Arrange rows in ir objects by column values

Usage

arrange.ir(.data, ..., .by_group = FALSE)

Arguments

.data

An object of class ir.

...

<data-masking> Variables, or functions of variables. Use desc() to sort a variable in descending order.

.by_group

If TRUE, will sort first by grouping variable. Applies to grouped data frames only.

Value

.data with arranged rows.

Source

dplyr::arrange()

See Also

Other tidyverse: distinct.ir(), extract.ir(), filter-joins, filter.ir(), group_by, mutate-joins, mutate, nest, pivot_longer.ir(), pivot_wider.ir(), rename, rowwise.ir(), select.ir(), separate.ir(), separate_rows.ir(), slice, summarize, unite.ir()

Examples

## arrange
dplyr::arrange(ir_sample_data, dplyr::desc(sample_type))



[Package ir version 0.2.1 Index]