Learn R Programming

permChacko (version 1.0.1)

reduceVector: Reduce a vector using the ordering process

Description

This function implements the ordering process described in Chacko (1963) and Chacko (1966).

Usage

reduceVector(x, verbosity = 0L)

Value

A list containing the original vector, the reduced vector, their weights and the number of reductions performed. Use names() and str()

on the output for more details.

Arguments

x

a vector of numeric values

verbosity

a natural number indicating the amount of output to print

Author

Waldir Leoncio

Examples

Run this code
reduceVector(c(10, 16, 14, 12, 18))
reduceVector(c(10, 8, 4, 2, 1))
reduceVector(chacko66_sec3)
reduceVector(chacko66_sec5)
reduceVector(chacko66_sec5, verbosity = 1)

Run the code above in your browser using DataLab