Learn R Programming

MoBPS (version 1.6.64)

sortd: Apply sort and unique

Description

Efficient function to perform sort(unique(v))

Usage

sortd(v)

Arguments

v

Vector

Value

numerical sorted vector without duplicates

Examples

Run this code
# NOT RUN {
v <- c(1,1,4,5)
sortd(v)
# }

Run the code above in your browser using DataLab