nor1mix (version 1.2-3)

sort.norMix: Sort Method for "norMix" Objects

Description

Sorting a "norMix" object (see norMix), sorts along the mu values; i.e., for the default decreasing = FALSE the resulting x[,"mu"] are sorted from left to right.

Usage

# S3 method for norMix
sort(x, decreasing = FALSE, …)

Arguments

x

an object of class "norMix".

decreasing

logicial indicating if sorting should be up or down.

further arguments passed to sort(x[,"mu"],*).

Value

a "norMix" object like x.

Examples

Run this code
# NOT RUN {
sort(MW.nm9)
stopifnot(identical(MW.nm2, sort(MW.nm2)))
# }

Run the code above in your browser using DataCamp Workspace