augment.qcc: Augment for qcc

Description Usage Arguments Value Examples

View source: R/qccOperations.R

Description

Augment for qcc

Usage

1
augment.qcc(x, include_center = TRUE, include_stddev = FALSE, gr_func = I, ...)

Arguments

x

a qcc object

include_center

should a column for the centerline be included?

include_stddev

should a column for the standard deviation be included?

gr_func

function to apply to group labels, useful for dates or numbers. Set this to as.numeric or as.Date when your groups are numbers/dates respectively

...

Value

a dataframe for every row in original data along with control chart calculations

Examples

1
2
3
4
5
6
7
8
9
library(broom)

data("pistonrings", package = 'qcc')
diameter <- qcc::qcc.groups(pistonrings$diameter, pistonrings$sample)
qcc_obj <- qcc::qcc(diameter[1:25,], type="xbar")
augment(qcc_obj)

qcc_new <-  qcc::qcc(diameter[1:25,], newdata = diameter[24:40,], type="xbar")
augment(qcc_new)

West-End-Statistics/r-library-vakdr documentation built on Dec. 18, 2021, 7:16 p.m.