sort.npnorm {nspmix} | R 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 |
decreasing |
logical, in the decreasing (default) or increasing order. |
... |
arguments passed to function |
Examples
mix = disc(pt=c(0,4), pr=c(0.3,0.7)) # a discrete distribution
x = rnpnorm(20, mix, sd=1)
sort(x)
[Package nspmix version 2.0-0 Index]