rMedian {ggQC}R Documentation

Median of Subgroup Ranges

Description

Calculates the median of subgroup ranges, used when constructing xBar_rMedian charts.

Usage

rMedian(data, value, grouping, formula = NULL, ...)

Arguments

data

data frame to be processed

value

numeric vector in a data frame with values of interest.

grouping

single factor/variable to split the data frame "values" by.

formula

a formula, such as y ~ x1 + x2, where the y variable is numeric data to be split into groups according to the grouping x factors/variables

...

further arguments passed to or from other methods.

Value

A number; median subgroup range.

Examples

set.seed(5555)
df <- data.frame(v=rnorm(60, 0, 1), g=rep(c("A","B","C","D","E"), each=12))
rMedian(data = df, formula = v~g)

[Package ggQC version 0.0.31 Index]