An R6 class to define a BreaksStrategy object

Active bindings

name

the name of the breaks strategy

type

the type of breaks strategy. Could be 'value' or 'concept'

labels

A character vector used to label each break interval

breaks

a vector with cut points

Methods


Method new()

Usage

BreaksStrategy$new(name, labels, breaks, type)

Arguments

name

the name of the breaks strategy

labels

a character vector indicating how to label each break interval

breaks

a vector with cut points

type

the type of breaks strategy. Could be 'value' or 'concept'


Method makeCaseWhenSql()

Generate SQL code for a CASE WHEN statement based on the break strategy

Usage

BreaksStrategy$makeCaseWhenSql(ordinalId)

Arguments

ordinalId

the order identifier of the line item in the table shell


Method clone()

The objects of this class are cloneable with this method.

Usage

BreaksStrategy$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.