totarget: Scales the data with target values

Description Usage Arguments Value

View source: R/totarget.R

Description

For positive polarity, high target is considered good and low target bad. Values under bad target are converted to 0 and values over good target are converted to 100. All other values are scaled in between 0 and 100. The opposite is performed for negative polarity.

Usage

1
totarget(x, low, high, polarity = "negative")

Arguments

x

data to be scaled with target values

low

low target value

high

high target value

polarity

polarity, either positive or negative

Value

scaled data


elenakhusainova/EPI_Rpackage documentation built on April 17, 2020, 9:48 a.m.