Last data update: 2014.03.03

R: Errors in bills data set
ss.data.billsR Documentation

Errors in bills data set

Description

This data set contains the number of errors detected in a set of bills and the name of the person in charge of the bill.

Usage

data("ss.data.bills")

Format

A data frame with 32 observations on the following 3 variables.

nbill

a numeric vector identifying a given bill

clerk

a character vector for the clerk responsible for the bill

errors

a character vector with the number of errors in the bill

Details

This data set illustrates concepts in the book “Quality Control with R”.

Source

Table 6.1 in the reference below.

References

Cano, E.L. and Moguerza, J.M. and Prieto Corcoba, M. (2015) Quality Control with R. An ISO Standards Approach. Springer.

Examples


data(ss.data.bills)
str(ss.data.bills) 
barplot(table(ss.data.bills$clerk), 
    main = "number of invoices")
aggregate(errors ~ clerk, ss.data.bills, sum)

Results


R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

> library(SixSigma)
> png(filename="/home/ddbj/snapshot/RGM3/R_CC/result/SixSigma/ss.data.bills.Rd_%03d_medium.png", width=480, height=480)
> ### Name: ss.data.bills
> ### Title: Errors in bills data set
> ### Aliases: ss.data.bills
> ### Keywords: datasets
> 
> ### ** Examples
> 
> 
> data(ss.data.bills)
> str(ss.data.bills) 
'data.frame':	32 obs. of  3 variables:
 $ nbill : int  1 2 3 4 5 6 7 8 9 10 ...
 $ clerk : chr  "Mary" "Mary" "John" "John" ...
 $ errors: int  2 2 0 1 2 0 0 0 0 1 ...
> barplot(table(ss.data.bills$clerk), 
+     main = "number of invoices")
> aggregate(errors ~ clerk, ss.data.bills, sum)
  clerk errors
1  John     13
2  Mary     10
> 
> 
> 
> 
> 
> 
> dev.off()
null device 
          1 
>