sort.npnorm: Sorting of an Object of Class 'npnorm'

View source: R/npnorm.R

sort.npnormR Documentation

Sorting of an Object of Class npnorm

Description

Function sort.npnorm sorts an object of class npnorm in the order of the obsersed values.

Usage

## S3 method for class 'npnorm'
sort(x, decreasing = FALSE, ...)

Arguments

x

an object of class npnorm.

decreasing

logical, in the decreasing (default) or increasing order.

...

arguments passed to function order.

Examples


mix = disc(pt=c(0,4), pr=c(0.3,0.7))  # a discrete distribution
x = rnpnorm(20, mix, sd=1)
sort(x)

 

nspmix documentation built on June 8, 2025, 12:29 p.m.

Related to sort.npnorm in nspmix...