reverse {clim.pact} | R Documentation

## Reverse

### Description

Reverses the order of a vector.`reverse.sort` returns a sorted vector in reverse order.

### Usage

    reverse(x)
    reverse.sort(x)

### Arguments

`x` | a vector

### Value

a vector.

### Author(s)

R.E. Benestad

### Examples

    reverse(c(1,3,5,7,2,4,6,8))      # 8 6 4 2 7 5 3 1
    reverse.sort(c(1,3,5,7,2,4,6,8)) # 8 7 6 5 4 3 2 1

[Package Contents]