Skip to contents

add_from_lup_prototype() 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 from lookup table prototype. The function returns Data (a tibble).

Usage

add_from_lup_prototype(
  data_tb,
  arrange_1L_chr = character(0),
  exclude_chr = character(0),
  lup_prototype_tb = NULL,
  match_var_nm_1L_chr = "UID_chr",
  method_1L_chr = c("first", "sample"),
  type_1L_chr = c("sequential", "batch", "self"),
  vars_chr = character(0)
)

Arguments

data_tb

Data (a tibble)

arrange_1L_chr

Arrange (a character vector of length one), Default: character(0)

exclude_chr

Exclude (a character vector), Default: character(0)

lup_prototype_tb

Lookup table prototype (a tibble), Default: NULL

match_var_nm_1L_chr

Match variable name (a character vector of length one), Default: 'UID_chr'

method_1L_chr

Method (a character vector of length one), Default: c("first", "sample")

type_1L_chr

Type (a character vector of length one), Default: c("sequential", "batch", "self")

vars_chr

Variables (a character vector), Default: character(0)

Value

Data (a tibble)