Learn R Programming

MoBPS (version 1.13.1)

sortd: Apply sort and unique

Description

Efficient function to perform sort(unique(v))

Usage

sortd(v)

Value

numerical sorted vector without duplicates

Arguments

v

Vector

Examples

Run this code
v <- c(1,1,4,5)
sortd(v)

Run the code above in your browser using DataLab