R6Class representing a control chart phase consisting of multiple
ControlChartSamples. Multiple phases may
form a ControlChart.
1 | phase = ControlChartPhase$new(name, preliminary = FALSE)
|
new(name, preliminary = FALSE)Initialize the phase.
name | Character. The name
of the phase. |
preliminary | If TRUE, the
phase is used to calculate the control line values of the parent
control chart, otherwise not.
|
add_sample(sample)Add a ControlChartSample or
ControlChartSampleList to the phase.
sample | A ControlChartSample.
|
get_id()Get the phase's id.
get_name()Get the phase's name.
get_sample(id)Get the phase's sample with id == id.
get_sample_ids()Get all sample ids as a character vector.
get_value()Get a tibble with
columns "sample" and "value".
is_preliminary()Returns a logical
indicating whether the phase is preliminary or not.
remove_sample(id)Remove the sample with id == id.
set_name()Set the phase's name.
set_preliminary(value)Set whether the phase is preliminary or not.
value | A logical.
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.