summary.tcc: Summarise Trellis Control Charts

Description Usage Arguments Value Examples

View source: R/tcc.R

Description

Summary function for tcc objects.

Usage

1
2
## S3 method for class 'tcc'
summary(object, ...)

Arguments

object

tcc object

...

Ignored. Included for compatibility with generic summary function.

Value

A data frame with summary statistics of the tcc object.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
# Build data frame for example
d <- data.frame(x = rep(1:24, 4),
                mo = (rep(seq(as.Date('2014-1-1'),
                              length.out = 24,
                              by = 'month'),
                          4)),
                n = rbinom(4 * 24, 100, 0.5),
                d = round(runif(4 * 24, 90, 110)),
                g1 = rep(c('a', 'b'), each = 48),
                g2 = rep(c('A', 'B'), each = 24))

# P chart
p <- tcc(n, d, mo, g1 = g1, g2 = g2, breaks = 12, data = d, chart = 'p')
plot(p)
summary(p)

anhoej/qicharts documentation built on April 21, 2021, 9:55 a.m.