ranges-arrange: Sort a Ranges object

Description Usage Arguments Value Examples

Description

Sort a Ranges object

Usage

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

Arguments

.data

A Ranges object.

...

Comma seperated list of variable names.

Value

A sorted Ranges object

Examples

1
2
3
4
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

plyranges documentation built on Nov. 8, 2020, 7:36 p.m.