ControlChartPhase: ControlChartPhase

Description Usage Methods

Description

R6Class representing a control chart phase consisting of multiple ControlChartSamples. Multiple phases may form a ControlChart.

Usage

1
phase = ControlChartPhase$new(name, preliminary = FALSE)

Methods

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.

DavidBarke/QWUtils documentation built on Jan. 13, 2020, 11:52 a.m.