sgFun {qAnalyst}R Documentation

Internal function to create subgroups for spc control charts

Description

sgFun creates suitable subgroups according to chart type.

Usage

sgFun(x, sg, type)

Arguments

x

data vector.

sg

subgroups specification depending by chart type, as passed by spc and capability.

type

chart type.

Details

sgFun is an internal function called by spc and capability. For sg specification details see spc and capability.

Value

A vector of subgroup id.

Note

Internal function

Author(s)

Giorgio Spedicato and Andrea Spano'

References

Internal function

See Also

spc, capability

Examples

x=c(4,5,6,7,8,3)
sgFun(x=x,sg=2,type="xbar")

[Package qAnalyst version 0.6.4 Index]