ranges-arrange: Sort a Ranges object

arrange.RangesR Documentation

Sort a Ranges object

Description

Sort a Ranges object

Usage

## S3 method for class 'Ranges'
arrange(.data, ...)

Arguments

.data

A Ranges object.

...

Comma seperated list of variable names.

Value

A sorted Ranges object

Examples

rng <- as_iranges(data.frame(start = 1:10, width = 10:1))
rng <- mutate(rng, score = runif(10))
arrange(rng, score)
# you can also use dplyr::desc to arrange by descending order

sa-lee/plyranges documentation built on April 15, 2024, 12:25 p.m.