qccGroups | R Documentation |
This function allows to easily group data to use as input to the qcc()
function.
qccGroups(data, x, sample)
data |
a data frame (or a similar structure which can be coerced to be a |
x |
a name from |
sample |
a name from |
The function returns a matrix of suitable dimensions. If one or more group have fewer observations than others, NA
values are used to fill empty values.
Luca Scrucca
qcc
data(pistonrings) # create a matrix of 40 samples made of 5 observations each qccGroups(data = pistonrings, diameter, sample) # remove some observations to get still a 40x5 matrix but filled with NAs qccGroups(data = pistonrings[-c(1,2,50,52,199),], diameter, sample)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.