sort.lvec: Sort a lvec

View source: R/sort.R

sort.lvecR Documentation

Sort a lvec

Description

Sort a lvec

Usage

## S3 method for class 'lvec'
sort(x, decreasing = FALSE, clone = TRUE, ...)

Arguments

x

lvec to sort

decreasing

unused (a value unequal to FALSE will generate an error).

clone

clone x before sorting

...

unused.

Value

Sorts x and returns a sorted copy of x. When clone is FALSE the input vector is modified.

Examples

x <- as_lvec(rnorm(10))
sort(x)

# Effect of clone
a <- as_lvec(rnorm(10))
b <- sort(a, clone = FALSE)
print(a)


lvec documentation built on Nov. 10, 2022, 6:18 p.m.

Related to sort.lvec in lvec...