stdrange: Standardize or Unstandarize the Column Range

Description Usage Arguments Author(s)

Description

Simple functions for rescaling a data matrix to a coded design and back. stdrange converts the design in actual measurements into a coded design, while ustdrange reverses the process (if the correct arguments are given).

Usage

1
2
3
stdrange(x, mins = apply(x, 2, min), maxs = apply(x, 2, max))

ustdrange(x, mins, maxs)

Arguments

x

matrix containing the design, or an object coercible to a matrix.

mins

vector of original values, one for each column, which should be recoded to the value -1; or which have alreadty been recoded to -1. This and the next argument are both recycled if not of the correct length.

maxs

vector of original values which should be recoded as 1, or which have already been recoded to 1.

Author(s)

Pieter C. Schoonees



Search within the vdg package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.