arrange.Ranges {plyranges} | R 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

[Package plyranges version 1.4.4 Index]