Learn R Programming

fifer (version 1.1)

scaleIt: Scale a variable

Description

Scale a variable to have a particular mean/sd (or min/max)

Usage

scaleIt(x, mean = NULL, sd = NULL, min = NULL, max = NULL)

Arguments

x
the variable to be scaled
mean
the mean you wish the distribution to have
sd
the sd you wish the distribution to have
min
the min you wish the distribution to have
max
the max you wish the distribution to have

Value

the scaled variable