Skip to contents

add_class_var() is an Add function that updates an object by adding new values to new or empty fields. Specifically, this function implements an algorithm to add class variable. The function returns Dataset (a tibble).

Usage

add_class_var(
  ds_tb,
  clusters_1L_int,
  model_mdl,
  class_var_nm_1L_chr = "class_int"
)

Arguments

ds_tb

Dataset (a tibble)

clusters_1L_int

Clusters (an integer vector of length one)

model_mdl

Model (a model)

class_var_nm_1L_chr

Class variable name (a character vector of length one), Default: 'class_int'

Value

Dataset (a tibble)