dot-medianSpecGrp: Rescale respective to specific group

.medianSpecGrpR Documentation

Rescale respective to specific group

Description

This function allows to rescale data 'x' so that specific group 'grpNum' gets normalized to predefined value 'grpVal'. In normal case x will be multiplied by 'grpVal' and devided by value obtained from 'grpNum'. If summary of 'grpNum-positions' or 'grpVal' is 0, then grpVal will be attained by subtraction of summary & adding grpVal

Usage

.medianSpecGrp(x, grpNum, grpVal, sumMeth = "median", callFrom = NULL)

Arguments

x

(numeric vector) main input

grpNum

(numeric)

grpVal

(numeric)

sumMeth

(character) method for summarizing

callFrom

(character) allow easier tracking of messages produced

Value

numeric vector

See Also

which.min

Examples

.firstMin(c(4,3:6))

wrMisc documentation built on Nov. 17, 2023, 5:09 p.m.