grouper: Transform a numeric vector by grouping it according to the...

Description Usage Arguments Details Author(s) References See Also

Description

The numeric vector is remapped to integers from 0 to max-1, with any missing values mapped to the midpoint. Original idea from Tony Nolan. This will eventually be generalised to do the remapping using any of the rescaling functions.

Usage

1
rescale.by.group(x, by=NULL, type = "irank", itop = 100)

Arguments

x

The numeric vector to rescale.

by

A factor of the same length as x used to define the groups.

type

The type of rescaling to perform.

itop

For an integer remapping this is the number of groups, so that the numeric values are maped to the integers from 0 to (max-1).

Details

This Rattle support function, which is also useful by itself, provides a simple mechanism to rescale a numeric variable. Several rescalings are possible. The rescaling is done by first grouping the observations according to the by argument.

Author(s)

Graham.Williams@togaware.com

References

Package home page: http://rattle.togaware.com

See Also

rattle.


grayskripko/rattle documentation built on May 17, 2019, 8:34 a.m.