MissComb: R6 Class for missing combinations The class has the field for...

MissCombR Documentation

R6 Class for missing combinations The class has the field for the combinations and custom plot function

Description

R6 Class for missing combinations The class has the field for the combinations and custom plot function

R6 Class for missing combinations The class has the field for the combinations and custom plot function

Public fields

na_combinations

dataframe with missing combinations

Methods

Public methods


Method new()

Creates a new MissComb Object

Usage
MissComb$new(na_comb = NA)
Arguments
na_comb

dataframe with missing combinations


Method plot()

custom plot function for the Class

Usage
MissComb$plot(
  labels = "index",
  label_length = 30,
  show_numbers = TRUE,
  text_offset = 50,
  top_n = 10,
  bar_color = "#FC8D62",
  plot_title = "NA combinations",
  x_lab = "combination",
  y_lab = "n"
)
Arguments
labels

which labels should be used. options: be 'index' or 'name'. 'index' results in a much shorter length usually

label_length

after how many characters the line should be splitted

show_numbers

if 'TRUE' shows the numbers of observations next to the bar.

text_offset

defines the offset of the text to the bar

top_n

show the 'top_n' cases

bar_color

defines the color of the bars

plot_title

title of the plot

x_lab

x axis label

y_lab

y axis label


Method clone()

The objects of this class are cloneable with this method.

Usage
MissComb$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.


el-mrt/auto-statistics documentation built on March 19, 2022, 1:57 p.m.